peltool: Print the Words6To9 'Description' field

Include the 'Description' field from the Words6To9 registry entry when printing
SRC error details.

Changed from this:

"Error Details": {
    "Message":              "There was a failure when reading a sensor device",
    "CALLOUT_ERRNO":        "0x5"
}

to this:

"Error Details": {
    "Message":              "There was a failure when reading a sensor device",
    "CALLOUT_ERRNO": [
                            "0x5",
                            "errno of the failure"
    ]
}

Signed-off-by: Harisuddin Mohamed Isa <harisuddin@gmail.com>
Change-Id: Icc107b0516062eb891f14f3ff3f3cffd316c6d77
diff --git a/test/openpower-pels/src_test.cpp b/test/openpower-pels/src_test.cpp
index 671bd54..301faac 100644
--- a/test/openpower-pels/src_test.cpp
+++ b/test/openpower-pels/src_test.cpp
@@ -190,11 +190,12 @@
     entry.src.reasonCode = 0xABCD;
     entry.subsystem = 0x42;
     entry.src.powerFault = true;
-    entry.src.hexwordADFields = {{5, "TEST1"}, // Not a user defined word
-                                 {6, "TEST1"},
-                                 {7, "TEST2"},
-                                 {8, "TEST3"},
-                                 {9, "TEST4"}};
+    entry.src.hexwordADFields = {
+        {5, {"TEST1", "DESCR1"}}, // Not a user defined word
+        {6, {"TEST1", "DESCR1"}},
+        {7, {"TEST2", "DESCR2"}},
+        {8, {"TEST3", "DESCR3"}},
+        {9, {"TEST4", "DESCR4"}}};
 
     // Values for the SRC words pointed to above
     std::vector<std::string> adData{"TEST1=0x12345678", "TEST2=12345678",
@@ -315,7 +316,6 @@
         errorDetails.value(),
         "Comp 0x1 failed 0x4 times over 0x1E secs with ErrorCode 0x1ABCDEF");
 }
-
 // Test that an inventory path callout string is
 // converted into the appropriate FRU callout.
 TEST_F(SRCTest, InventoryCalloutTest)
@@ -1300,4 +1300,4 @@
 
     EXPECT_EQ(callout->locationCode(), "UTMS-P1");
     EXPECT_EQ(callout->priority(), 'M');
-}
\ No newline at end of file
+}