mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
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>
This commit is contained in:
parent
d01127584e
commit
5217f1887a
6 changed files with 17 additions and 16 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue