diff options
author | Markus Armbruster <armbru@redhat.com> | 2020-05-05 12:19:03 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2020-05-27 07:45:30 +0200 |
commit | 5217f1887a8041c51495fbd5d3f767d96a242000 (patch) | |
tree | 178772e59bd02dca6cfefe773d24974f8120f517 /chardev | |
parent | d01127584e70f9242d3dd9bf4c0bdc1980254713 (diff) |
error: Use error_reportf_err() where appropriate
Replace
error_report("...: %s", ..., error_get_pretty(err));
by
error_reportf_err(err, "...: ", ...);
One of the replaced messages lacked a colon. Add it.
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200505101908.6207-6-armbru@redhat.com>
Diffstat (limited to 'chardev')
-rw-r--r-- | chardev/char-socket.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chardev/char-socket.c b/chardev/char-socket.c index e77699db48..db253d4024 100644 --- a/chardev/char-socket.c +++ b/chardev/char-socket.c @@ -138,8 +138,9 @@ static void check_report_connect_error(Chardev *chr, SocketChardev *s = SOCKET_CHARDEV(chr); if (!s->connect_err_reported) { - error_report("Unable to connect character device %s: %s", - chr->label, error_get_pretty(err)); + error_reportf_err(err, + "Unable to connect character device %s: ", + chr->label); s->connect_err_reported = true; } qemu_chr_socket_restart_timer(chr); |