diff options
author | Markus Armbruster <armbru@redhat.com> | 2015-12-18 16:35:18 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2016-01-13 15:16:18 +0100 |
commit | b9884681491fbe8b3fa32d58f35bcc5f725c5258 (patch) | |
tree | 03d35de6c707603c611dc095383f7810cba1dd43 /qemu-nbd.c | |
parent | d410fe145446968055f3807b0d41ae8150eb0926 (diff) | |
download | qemu-b9884681491fbe8b3fa32d58f35bcc5f725c5258.zip |
qemu-io qemu-nbd: Use error_report() etc. instead of fprintf()
Just three instances left.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <1450452927-8346-16-git-send-email-armbru@redhat.com>
Diffstat (limited to 'qemu-nbd.c')
-rw-r--r-- | qemu-nbd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-nbd.c b/qemu-nbd.c index f9fce4a57a..99df01fd20 100644 --- a/qemu-nbd.c +++ b/qemu-nbd.c @@ -257,7 +257,7 @@ static void *nbd_client_thread(void *arg) fd = open(device, O_RDWR); if (fd < 0) { /* Linux-only, we can use %m in printf. */ - fprintf(stderr, "Failed to open %s: %m\n", device); + error_report("Failed to open %s: %m", device); goto out_socket; } |