mirror of
https://github.com/qemu/qemu.git
synced 2024-11-23 19:03:38 +08:00
HMP: Print 'io-status' information
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
f04ef60100
commit
d2078cc238
5
block.c
5
block.c
@ -1868,6 +1868,11 @@ static void bdrv_print_dict(QObject *obj, void *opaque)
|
||||
monitor_printf(mon, " tray-open=%d",
|
||||
qdict_get_bool(bs_dict, "tray-open"));
|
||||
}
|
||||
|
||||
if (qdict_haskey(bs_dict, "io-status")) {
|
||||
monitor_printf(mon, " io-status=%s", qdict_get_str(bs_dict, "io-status"));
|
||||
}
|
||||
|
||||
if (qdict_haskey(bs_dict, "inserted")) {
|
||||
QDict *qdict = qobject_to_qdict(qdict_get(bs_dict, "inserted"));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user