mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 19:49:43 +00:00
679cb8e1a1
printf() & friends return the number of characters written on success, negative value on error. monitor_printf(), monitor_vfprintf(), monitor_vprintf(), error_printf(), error_printf_unless_qmp(), error_vprintf(), and error_vprintf_unless_qmp() return void. Some of them carry a TODO comment asking for int instead. Improve them to return int like printf() does. This makes our use of monitor_printf() as fprintf_function slightly less dirty: the function cast no longer adds a return value that isn't there. It still changes a parameter's pointer type. That will be addressed in a future commit. monitor_vfprintf() always returns zero. Improve it to return the proper value. Cc: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Message-Id: <20190417190641.26814-11-armbru@redhat.com> |
||
---|---|---|
.. | ||
bdrv-next-monitor-owned.c | ||
blk-commit-all.c | ||
blockdev-close-all-bdrv-states.c | ||
change-state-handler.c | ||
clock-warp.c | ||
cpu-get-clock.c | ||
cpu-get-icount.c | ||
dump.c | ||
error-printf.c | ||
fd-register.c | ||
fdset.c | ||
gdbstub.c | ||
get-vm-name.c | ||
iothread-lock.c | ||
iothread.c | ||
is-daemonized.c | ||
linux-aio.c | ||
machine-init-done.c | ||
Makefile.objs | ||
migr-blocker.c | ||
monitor.c | ||
notify-event.c | ||
pc_madt_cpu_entry.c | ||
pci-host-piix.c | ||
qmp_memory_device.c | ||
qtest.c | ||
ram-block.c | ||
ramfb.c | ||
replay.c | ||
runstate-check.c | ||
set-fd-handler.c | ||
sysbus.c | ||
target-get-monitor-def.c | ||
target-monitor-defs.c | ||
tpm.c | ||
trace-control.c | ||
uuid.c | ||
vm-stop.c | ||
vmgenid.c | ||
vmstate.c | ||
xen-common.c | ||
xen-hvm.c |