From 6282c72d2e339890f54b183b22f8e8dbb9e2c16e Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Sat, 17 Dec 2016 13:14:08 +0100 Subject: [PATCH] Validation: Whitespace fixes --- validation/data_validator.h | 8 ++++---- validation/data_validator_group.cpp | 10 +++++----- validation/data_validator_group.h | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/validation/data_validator.h b/validation/data_validator.h index 356220c336..149f9c0956 100644 --- a/validation/data_validator.h +++ b/validation/data_validator.h @@ -101,13 +101,13 @@ public: * @return the stored priority */ int priority() { return (_priority); } - + /** * Get the error state of this validator * @return the bitmask with the error status */ uint32_t state() { return _error_mask; } - + /** * Reset the error state of this validator */ @@ -144,9 +144,9 @@ public: * @return The timeout interval in microseconds */ uint32_t get_timeout() const { return _timeout_interval; } - + /** - * Data validator error states + * Data validator error states */ static constexpr uint32_t ERROR_FLAG_NO_ERROR = (0x00000000U); static constexpr uint32_t ERROR_FLAG_NO_DATA = (0x00000001U); diff --git a/validation/data_validator_group.cpp b/validation/data_validator_group.cpp index ae1fc31578..9d56b53cbb 100644 --- a/validation/data_validator_group.cpp +++ b/validation/data_validator_group.cpp @@ -252,7 +252,7 @@ DataValidatorGroup::print() while (next != nullptr) { if (next->used()) { uint32_t flags = next->state(); - + ECL_INFO("sensor #%u, prio: %d, state:%s%s%s%s%s%s", i, next->priority(), ((flags & DataValidator::ERROR_FLAG_NO_DATA) ? " NO_DATA" : ""), ((flags & DataValidator::ERROR_FLAG_STALE_DATA) ? " STALE_DATA" : ""), @@ -260,7 +260,7 @@ DataValidatorGroup::print() ((flags & DataValidator::ERROR_FLAG_HIGH_ERRCOUNT) ? " HIGH_ERRCOUNT" : ""), ((flags & DataValidator::ERROR_FLAG_HIGH_ERRDENSITY) ? " HIGH_ERRDENSITY" : ""), ((flags == DataValidator::ERROR_FLAG_NO_ERROR) ? " OK" : "")); - + next->print(); } next = next->sibling(); @@ -279,7 +279,7 @@ DataValidatorGroup::failover_index() { DataValidator *next = _first; unsigned i = 0; - + while (next != nullptr) { if (next->used() && (next->state() != DataValidator::ERROR_FLAG_NO_ERROR) && (i == (unsigned)_prev_best)) { return i; @@ -292,10 +292,10 @@ DataValidatorGroup::failover_index() uint32_t DataValidatorGroup::failover_state() -{ +{ DataValidator *next = _first; unsigned i = 0; - + while (next != nullptr) { if (next->used() && (next->state() != DataValidator::ERROR_FLAG_NO_ERROR) && (i == (unsigned)_prev_best)) { return next->state(); diff --git a/validation/data_validator_group.h b/validation/data_validator_group.h index 89d4e1a4e5..365485c274 100644 --- a/validation/data_validator_group.h +++ b/validation/data_validator_group.h @@ -96,14 +96,14 @@ public: * @return the number of failovers */ unsigned failover_count(); - + /** * Get the index of the failed sensor in the group * * @return index of the failed sensor */ int failover_index(); - + /** * Get the error state of the failed sensor in the group *