Skip to content

Commit

Permalink
hmp: drop bogus "[not inserted]"
Browse files Browse the repository at this point in the history
Commit 3e9fab6 ("block: Add support for
throttling burst max in QMP and the command line.") introduced bogus
"[not inserted]" output, possibly due to a merge failure.  Remove this
artifact.

Output of 'info block'

scsi0-hd0: /images/f18-ppc64.qcow2 (qcow2)
 [not inserted]
scsi0-cd2: [not inserted]
    Removable device: not locked, tray closed

floppy0: [not inserted]
    Removable device: not locked, tray closed

sd0: [not inserted]
    Removable device: not locked, tray closed

There will be no additional lines between scsi0-hd0 and
scsi0-cd2.

At the same time, scsi0-hd0 already inserted, but still has
'[not inserted]' flag. This line should be removed.

This patch is to solve this.

Signed-off-by: Mike Qiu <[email protected]>
Signed-off-by: Stefan Hajnoczi <[email protected]>
  • Loading branch information
QiuMike authored and stefanhaRH committed Oct 17, 2013
1 parent 1680d48 commit 684b254
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions hmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,8 +366,6 @@ void hmp_info_block(Monitor *mon, const QDict *qdict)
info->value->inserted->iops_rd_max,
info->value->inserted->iops_wr_max,
info->value->inserted->iops_size);
} else {
monitor_printf(mon, " [not inserted]");
}

if (verbose) {
Expand Down

0 comments on commit 684b254

Please sign in to comment.