mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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>
This commit is contained in:
parent
d410fe1454
commit
b988468149
17 changed files with 93 additions and 95 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue