diff options
author | Greg Kurz <gkurz@linux.vnet.ibm.com> | 2016-01-22 15:12:17 +0100 |
---|---|---|
committer | Greg Kurz <gkurz@linux.vnet.ibm.com> | 2016-01-22 15:12:17 +0100 |
commit | 63325b181f49d06bc2201cfdd52ba92c05939f13 (patch) | |
tree | 8fa119560b36f28006a3122ae8e848516b62a684 /hw/9pfs/9p-handle.c | |
parent | 911a4efd0caec9a9c65746a8bd78bc4fc212b379 (diff) |
9pfs: use error_report() instead of fprintf(stderr)
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Greg Kurz <gkurz@linux.vnet.ibm.com>
Diffstat (limited to 'hw/9pfs/9p-handle.c')
-rw-r--r-- | hw/9pfs/9p-handle.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/9pfs/9p-handle.c b/hw/9pfs/9p-handle.c index 58b77b4c94..120486b1aa 100644 --- a/hw/9pfs/9p-handle.c +++ b/hw/9pfs/9p-handle.c @@ -19,6 +19,7 @@ #include <sys/socket.h> #include <sys/un.h> #include "qemu/xattr.h" +#include "qemu/error-report.h" #include <unistd.h> #include <linux/fs.h> #ifdef CONFIG_LINUX_MAGIC_H @@ -655,12 +656,12 @@ static int handle_parse_opts(QemuOpts *opts, struct FsDriverEntry *fse) const char *path = qemu_opt_get(opts, "path"); if (sec_model) { - fprintf(stderr, "Invalid argument security_model specified with handle fsdriver\n"); + error_report("Invalid argument security_model specified with handle fsdriver"); return -1; } if (!path) { - fprintf(stderr, "fsdev: No path specified.\n"); + error_report("fsdev: No path specified"); return -1; } fse->path = g_strdup(path); |