Signature::toUnit32() helper for logging and tracing

Signed-off-by: Zane Shelley <zshelle@us.ibm.com>
Change-Id: I9ec35700c7a24db23893acb347f6283dcf7adc93
diff --git a/src/hei_signature.hpp b/src/hei_signature.hpp
index eb02b88..92aaa3f 100644
--- a/src/hei_signature.hpp
+++ b/src/hei_signature.hpp
@@ -63,7 +63,7 @@
         return iv_chip;
     }
 
-    /** @return The register ID. */
+    /** @return The node ID. */
     NodeId_t getId() const
     {
         return iv_id;
@@ -87,6 +87,13 @@
         return iv_attnType;
     }
 
+    /** @return A 32-bit integer containing the node ID, instance, and bit. This
+     *          should be helpful for consistent logging and tracing. */
+    uint32_t toUint32() const
+    {
+        return getId() << 16 | getInstance() << 8 | getBit();
+    }
+
   public: // Operators
     /** @brief Equals operator. */
     bool operator==(const Signature& i_r) const