qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH v2 15/23] qemu-io qemu-nbd: Use error_report() e


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH v2 15/23] qemu-io qemu-nbd: Use error_report() etc. instead of fprintf()
Date: Thu, 17 Dec 2015 13:57:19 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

On 12/17/2015 01:51 PM, Eric Blake wrote:
> On 12/17/2015 09:49 AM, Markus Armbruster wrote:
>> Just three instances left.
>>
>> Signed-off-by: Markus Armbruster <address@hidden>
>> ---
> 
>> +++ b/qemu-nbd.c
>> @@ -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);
> 
> I asked back in 1/20 if we want to add error_report_errno() - if so, it

I meant 1/23.

> would let us switch from the comment about non-portable use of %m over
> to using that new function.  Of course, doesn't affect _this_ patch.
> 
> Lots of test fallout from those three conversions, but they look fine.
> 
> Reviewed-by: Eric Blake <address@hidden>
> 

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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