Include hex decode for human readable fields
Hexadecimal decode for some fields like deviceAddress
make sense to be represented in hex over decimal to make
scripting and human-usability easier.
Change-Id: I7d0d100162bc681c3c6885ca01ed23020c3b5063
Signed-off-by: Aushim Nagarkatti <anagarkatti@nvidia.com>
diff --git a/specification/json/sections/cper-memory.json b/specification/json/sections/cper-memory.json
index bdb01da..e2bd787 100644
--- a/specification/json/sections/cper-memory.json
+++ b/specification/json/sections/cper-memory.json
@@ -8,6 +8,7 @@
"memoryErrorType",
"extended",
"physicalAddress",
+ "physicalAddressHex",
"physicalAddressMask",
"node",
"card",
@@ -179,6 +180,9 @@
"type": "integer",
"description": "The physical address at which the memory error occurred."
},
+ "physicalAddressHex": {
+ "type": "string"
+ },
"physicalAddressMask": {
"type": "integer",
"description": "Defines the valid address bits in the Physical Address field. The mask specifies the granularity of the physical address."
diff --git a/specification/json/sections/cper-memory2.json b/specification/json/sections/cper-memory2.json
index 0f57f63..edc62ab 100644
--- a/specification/json/sections/cper-memory2.json
+++ b/specification/json/sections/cper-memory2.json
@@ -8,6 +8,7 @@
"memoryErrorType",
"status",
"physicalAddress",
+ "physicalAddressHex",
"physicalAddressMask",
"node",
"card",
@@ -178,6 +179,9 @@
"type": "integer",
"description": "The physical address at which the memory error occurred."
},
+ "physicalAddressHex": {
+ "type": "string"
+ },
"physicalAddressMask": {
"type": "integer",
"description": "Defines the valid address bits in the Physical Address field. The mask specifies the granularity of the physical address which is dependent on the hardware implementation factors such as interleaving."
diff --git a/specification/json/sections/cper-pci-bus.json b/specification/json/sections/cper-pci-bus.json
index 503c065..ba23e72 100644
--- a/specification/json/sections/cper-pci-bus.json
+++ b/specification/json/sections/cper-pci-bus.json
@@ -10,7 +10,9 @@
"busData",
"busCommandType",
"busRequestorID",
+ "busRequestorIDHex",
"busCompleterID",
+ "busCompleterIDHex",
"targetID"
],
"additionalProperties": false,
@@ -99,10 +101,16 @@
"type": "integer",
"description": "PCI Bus Requestor Id."
},
+ "busRequestorIDHex": {
+ "type": "string"
+ },
"busCompleterID": {
"type": "integer",
"description": "PCI Bus Responder Id."
},
+ "busCompleterIDHex": {
+ "type": "string"
+ },
"targetID": {
"type": "integer",
"description": "PCI Bus intended target identifier."
diff --git a/specification/json/sections/cper-pcie.json b/specification/json/sections/cper-pcie.json
index 79bd600..c9970ef 100644
--- a/specification/json/sections/cper-pcie.json
+++ b/specification/json/sections/cper-pcie.json
@@ -93,6 +93,7 @@
"required": [
"vendorID",
"deviceID",
+ "deviceIDHex",
"classCode",
"functionNumber",
"deviceNumber",
@@ -108,6 +109,9 @@
"deviceID": {
"type": "integer"
},
+ "deviceIDHex": {
+ "type": "string"
+ },
"classCode": {
"type": "integer"
},
@@ -173,6 +177,9 @@
"uncorrectable_error_status": {
"type": "integer"
},
+ "uncorrectable_error_status_hex": {
+ "type": "string"
+ },
"uncorrectable_error_mask": {
"type": "integer"
},
@@ -182,6 +189,9 @@
"correctable_error_status": {
"type": "integer"
},
+ "correctable_error_status_hex": {
+ "type": "string"
+ },
"correctable_error_mask": {
"type": "integer"
},