diff options
author | Greg Kurz <gkurz@linux.vnet.ibm.com> | 2016-01-22 15:12:18 +0100 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 19:29:54 -0600 |
commit | 8ad51140011f4736b253d97cc740ab82f3b9b9d4 (patch) | |
tree | 2545d5ff19fb74eb1f6bc002a367b127e130ee4e /fsdev/qemu-fsdev.c | |
parent | 6e784e636b07ae077b98ae9f64952f590f661784 (diff) | |
download | hqemu-8ad51140011f4736b253d97cc740ab82f3b9b9d4.zip hqemu-8ad51140011f4736b253d97cc740ab82f3b9b9d4.tar.gz |
fsdev: use error_report() instead of fprintf(stderr)
Only fix the code that gets built into QEMU.
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Diffstat (limited to 'fsdev/qemu-fsdev.c')
-rw-r--r-- | fsdev/qemu-fsdev.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fsdev/qemu-fsdev.c b/fsdev/qemu-fsdev.c index ccfec13..55e2f7a 100644 --- a/fsdev/qemu-fsdev.c +++ b/fsdev/qemu-fsdev.c @@ -17,6 +17,7 @@ #include "qemu/osdep.h" #include "qemu-common.h" #include "qemu/config-file.h" +#include "qemu/error-report.h" static QTAILQ_HEAD(FsDriverEntry_head, FsDriverListEntry) fsdriver_entries = QTAILQ_HEAD_INITIALIZER(fsdriver_entries); @@ -40,7 +41,7 @@ int qemu_fsdev_add(QemuOpts *opts) bool ro = qemu_opt_get_bool(opts, "readonly", 0); if (!fsdev_id) { - fprintf(stderr, "fsdev: No id specified\n"); + error_report("fsdev: No id specified"); return -1; } @@ -52,11 +53,11 @@ int qemu_fsdev_add(QemuOpts *opts) } if (i == ARRAY_SIZE(FsDrivers)) { - fprintf(stderr, "fsdev: fsdriver %s not found\n", fsdriver); + error_report("fsdev: fsdriver %s not found", fsdriver); return -1; } } else { - fprintf(stderr, "fsdev: No fsdriver specified\n"); + error_report("fsdev: No fsdriver specified"); return -1; } |