summary refs log tree commit diff stats
path: root/hw/virtio-net.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2010-02-17 18:05:26 +0100
committerMarkus Armbruster <armbru@redhat.com>2010-03-16 16:55:05 +0100
commit8ad00f84251c7aefca26461faccfbb557e1dba47 (patch)
tree456c0ecba3062d3a1cbd0a19d35b7550bb4a66b8 /hw/virtio-net.c
parent03cd4655cbbc304f355deffd3413f7e3cbbcbe5e (diff)
downloadfocaccia-qemu-8ad00f84251c7aefca26461faccfbb557e1dba47.tar.gz
focaccia-qemu-8ad00f84251c7aefca26461faccfbb557e1dba47.zip
pc: Fix error reporting for -boot once
Commit 0ecdffbb created pc_boot_set() for use from monitor command
"boot_set", via qemu_boot_set().  pc_boot_set() reports errors to
cur_mon, which works fine for monitor code.

Commit e0f084bf reused the function int reset handler
restore_boot_devices().  Use of cur_mon is problematic in that
context.  For instance, the "Too many boot devices for PC" error for
"-boot order=abcdefgh,once=c" goes to the monitor instead of stderr.
The monitor may not even exist.

Fix by switching to qemu_error().
Diffstat (limited to 'hw/virtio-net.c')
0 files changed, 0 insertions, 0 deletions