Markus Armbruster
e1ce7d747b
block/qapi: Clean up how we print to monitor or stdout
...
bdrv_snapshot_dump(), bdrv_image_info_specific_dump(),
bdrv_image_info_dump() and their helpers take an fprintf()-like
callback and a FILE * to pass to it.
hmp.c passes monitor_printf() cast to fprintf_function and the current
monitor cast to FILE *.
qemu-img.c and qemu-io-cmds.c pass fprintf and stdout.
The type-punning is technically undefined behaviour, but works in
practice. Clean up: drop the callback, and call qemu_printf()
instead.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Message-Id: <20190417191805.28198-8-armbru@redhat.com>
2019-04-18 22:18:59 +02:00
..
2019-02-22 09:42:13 +00:00
2019-03-26 11:37:51 +01:00
2019-02-25 15:11:27 +01:00
2018-09-25 17:26:18 +02:00
2019-02-25 15:11:27 +01:00
2019-04-01 08:46:52 -05:00
2019-01-11 15:46:56 +01:00
2018-11-05 15:09:55 +01:00
2019-03-12 20:30:14 +01:00
2019-03-26 11:37:51 +01:00
2018-08-31 16:28:33 +02:00
2019-03-19 15:49:29 +01:00
2018-06-29 14:20:56 +02:00
2019-02-25 15:11:27 +01:00
2019-03-12 12:05:49 -04:00
2018-12-14 11:52:40 +01:00
2019-01-04 11:15:09 +00:00
2018-12-14 11:52:40 +01:00
2019-04-02 12:04:44 +02:00
2019-01-11 15:46:56 +01:00
2019-04-02 12:04:44 +02:00
2019-03-26 11:37:51 +01:00
2019-03-11 16:33:49 +01:00
2019-01-11 15:46:56 +01:00
2018-12-14 11:52:40 +01:00
2019-03-26 11:37:51 +01:00
2019-04-01 08:58:04 -05:00
2019-02-25 15:03:19 +01:00
2019-03-30 20:52:19 -05:00
2019-02-25 15:11:27 +01:00
2019-02-25 15:11:27 +01:00
2019-02-25 15:11:27 +01:00
2019-02-22 09:42:13 +00:00
2019-04-18 22:18:59 +02:00
2019-03-12 14:57:38 -04:00
2019-03-08 12:26:46 +01:00
2019-03-08 12:26:46 +01:00
2019-03-08 12:26:46 +01:00
2019-03-08 12:26:46 +01:00
2019-04-16 16:23:24 +02:00
2019-03-12 14:57:38 -04:00
2019-02-26 19:04:47 +00:00
2019-02-22 09:42:13 +00:00
2019-02-26 19:04:47 +00:00
2019-02-25 15:11:27 +01:00
2019-03-26 11:37:51 +01:00
2019-02-25 15:11:27 +01:00
2019-03-19 15:49:29 +01:00
2019-02-25 15:11:27 +01:00
2019-02-25 15:03:18 +01:00
2019-04-17 21:21:49 +02:00
2019-04-02 12:04:44 +02:00
2019-01-24 10:02:28 +00:00
2019-02-25 15:11:27 +01:00
2019-04-17 21:21:49 +02:00
2019-02-01 13:46:45 +01:00
2018-11-05 15:09:54 +01:00
2019-02-25 15:11:25 +01:00
2018-11-05 15:09:54 +01:00
2019-01-11 15:46:55 +01:00
2019-03-19 15:49:29 +01:00
2019-02-25 15:11:27 +01:00
2019-02-25 15:11:27 +01:00
2019-02-25 15:11:27 +01:00
2018-08-28 18:21:38 +02:00