qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 0/3] Clean up non-blocking error reporting


From: Paolo Bonzini
Subject: Re: [Qemu-devel] [PATCH v2 0/3] Clean up non-blocking error reporting
Date: Wed, 08 Oct 2014 14:56:20 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1

Il 08/10/2014 14:11, address@hidden ha scritto:
> This version makes the error message reporting more sane and
> adds a error_vreport() to make that easier.
> 
> It also cleans up the bool handling.
> 
> This depends on the previos non-blocking socket changes, which
> should hopefully be in qemu soon.

Looks good, but let's unify the error message like this:

+static void check_report_connect_error(CharDriverState *chr,
+                                       Error *err)
+{
+    TCPCharDriver *s = chr->opaque;
+
+    if (!s->connect_err_reported) {
+        error_report("Unable to connect character device %s: %s",
+                     chr->label, error_get_pretty(err));
+        s->connect_err_reported = true;
+    }
+    qemu_chr_socket_restart_timer(chr);
+}
+

This is an error on connecting the character device to the backend.  The
error on the socket is already detailed after the colon, thanks to your
patch 2.

I'll send a pull request today or tomorrow.

Thanks,

Paolo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]