OSDN Git Service

qapi: fix example of DEVICE_UNPLUG_GUEST_ERROR event
authorVictor Toso <victortoso@redhat.com>
Thu, 1 Sep 2022 08:58:36 +0000 (10:58 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 7 Sep 2022 13:10:13 +0000 (15:10 +0200)
Example output is missing a ',' delimiter and it has an extra ending
curly bracket. Fix it.

Problem was noticed when trying to load the example into python's json
library.

Signed-off-by: Victor Toso <victortoso@redhat.com>
Message-Id: <20220901085840.22520-7-victortoso@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
qapi/qdev.json

index 26cd101..2708fb4 100644 (file)
 #
 # Example:
 #
-# <- { "event": "DEVICE_UNPLUG_GUEST_ERROR"
+# <- { "event": "DEVICE_UNPLUG_GUEST_ERROR",
 #      "data": { "device": "core1",
 #                "path": "/machine/peripheral/core1" },
-#      },
 #      "timestamp": { "seconds": 1615570772, "microseconds": 202844 } }
 #
 ##