psu-ng: Limit tracing to STATUS_WORD changes

Add in a statusWordOld to compare with new statusWord value. Use that to
limit tracing to only when the value changes.

Signed-off-by: Brandon Wyman <bjwyman@gmail.com>
Change-Id: I40d9d8c08b5e60f7c11f753c0bf88c78304ecb1d
diff --git a/phosphor-power-supply/power_supply.hpp b/phosphor-power-supply/power_supply.hpp
index c49039a..7ef32f4 100644
--- a/phosphor-power-supply/power_supply.hpp
+++ b/phosphor-power-supply/power_supply.hpp
@@ -431,6 +431,9 @@
     /** @brief Will be updated to the latest/lastvalue read from STATUS_WORD.*/
     uint64_t statusWord = 0;
 
+    /** @brief Will be set to the last read value of STATUS_WORD. */
+    uint64_t statusWordOld = 0;
+
     /** @brief Will be updated to the latest/lastvalue read from STATUS_INPUT.*/
     uint64_t statusInput = 0;