qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] Re: [RFC 0/7] QError v1


From: Paolo Bonzini
Subject: [Qemu-devel] Re: [RFC 0/7] QError v1
Date: Thu, 29 Oct 2009 23:12:10 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20091014 Fedora/3.0-2.8.b4.fc11 Lightning/1.0pre Thunderbird/3.0b4

  A last note: this series is on top of the (to be merged) QJSon module,
that's why it's a RFC and.. I didn't test it too much. :)

I have just two comments:

1) you do

-        qemu_error("Device \"%s\" not found.  Try -device '?' for a list.\n",
-                   driver);
+        qemu_error_structed(QERR_DEV_NFOUND, "{ 'name': %s }", driver);

why not store the "{ 'name': %s }" in the qerror_table? I guess you plan to have different fields in some cases?

2) as I understood it, the consensus was to store the expanded error message (i.e. qerror_print) in the JSON output as well. That would involve returning a QString from qerror_print, I guess.

Paolo




reply via email to

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