prettier: re-format
Prettier is enabled in openbmc-build-scripts on Markdown, JSON, and YAML
files to have consistent formatting for these file types. Re-run the
formatter on the whole repository.
Change-Id: I0d25f27a5e449578967915d9f570cc29246927d7
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/libpldmresponder/examples/pdr/sensor_pdr.json b/libpldmresponder/examples/pdr/sensor_pdr.json
index 1d0489a..8f0ee34 100644
--- a/libpldmresponder/examples/pdr/sensor_pdr.json
+++ b/libpldmresponder/examples/pdr/sensor_pdr.json
@@ -1,64 +1,58 @@
// This JSON is tied with BMC's PDRs. Each entry is used to identify a group of
// composite sensors.
{
- "sensorPDRs": [
- {
- // StateSensorPDR
- // Each sensor in each group of composite sensors has a separate entry and the
- // supported event states, up to eight.
- // The "dbus" section contains information about the corresponding D-Bus
- // property for the sensor and "property_values" are the D-Bus property values
- // for each corresponding entry in the "states".
- "pdrType": 4,
- "entries": [
+ "sensorPDRs": [
{
- "type": 5,
- "instance": 0,
- "container": 0,
- "sensors": [
- {
- "set": {
- "id": 1,
- "size": 1,
- "states": [
- 0,
- 5
- ]
- },
- "dbus": {
- "path": "/foo/bar",
- "interface": "xyz.openbmc_project.Foo.Bar",
- "property_name": "propertyName",
- "property_type": "string",
- "property_values": [
- "xyz.openbmc_project.Foo.Bar.V0",
- "xyz.openbmc_project.Foo.Bar.V5"
- ]
- }
- },
- {
- "set": {
- "id": 2,
- "size": 1,
- "states": [
- 2,
- 3
- ]
- },
- "dbus": {
- "path": "/foo/bar",
- "interface": "xyz.openbmc_project.Foo.Bar",
- "property_name": "propertyName",
- "property_type": "string",
- "property_values": [
- "xyz.openbmc_project.Foo.Bar.V2",
- "xyz.openbmc_project.Foo.Bar.V3"
- ]
- }
- }
- ]
+ // StateSensorPDR
+ // Each sensor in each group of composite sensors has a separate entry and the
+ // supported event states, up to eight.
+ // The "dbus" section contains information about the corresponding D-Bus
+ // property for the sensor and "property_values" are the D-Bus property values
+ // for each corresponding entry in the "states".
+ "pdrType": 4,
+ "entries": [
+ {
+ "type": 5,
+ "instance": 0,
+ "container": 0,
+ "sensors": [
+ {
+ "set": {
+ "id": 1,
+ "size": 1,
+ "states": [0, 5]
+ },
+ "dbus": {
+ "path": "/foo/bar",
+ "interface": "xyz.openbmc_project.Foo.Bar",
+ "property_name": "propertyName",
+ "property_type": "string",
+ "property_values": [
+ "xyz.openbmc_project.Foo.Bar.V0",
+ "xyz.openbmc_project.Foo.Bar.V5"
+ ]
+ }
+ },
+ {
+ "set": {
+ "id": 2,
+ "size": 1,
+ "states": [2, 3]
+ },
+ "dbus": {
+ "path": "/foo/bar",
+ "interface": "xyz.openbmc_project.Foo.Bar",
+ "property_name": "propertyName",
+ "property_type": "string",
+ "property_values": [
+ "xyz.openbmc_project.Foo.Bar.V2",
+ "xyz.openbmc_project.Foo.Bar.V3"
+ ]
+ }
+ }
+ ]
+ }
+ ]
}
- ]
- }
- ]
+ ]
}