qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH 11/18] block/vvfat: Propagate errors through ini


From: Eric Blake
Subject: Re: [Qemu-devel] [PATCH 11/18] block/vvfat: Propagate errors through init_directories()
Date: Wed, 14 May 2014 11:45:28 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

On 05/13/2014 10:02 AM, Markus Armbruster wrote:
> Completes the conversion of the open method to Error started in commit
> 015a103.
> 
> Signed-off-by: Markus Armbruster <address@hidden>
> ---
>  block/vvfat.c | 16 +++++++++-------
>  1 file changed, 9 insertions(+), 7 deletions(-)
> 
> @@ -892,8 +893,8 @@ static int init_directories(BDRVVVFATState* s,
>          if (mapping->mode & MODE_DIRECTORY) {
>           mapping->begin = cluster;
>           if(read_directory(s, i)) {
> -             fprintf(stderr, "Could not read directory %s\n",
> -                     mapping->path);
> +                error_setg(errp, "Could not read directory %s",
> +                           mapping->path);

I see you fixed some TABs in the process; is it worth widening the fix
to the rest of the 'if' statement?  I don't care either way, as long as
checkpatch.pl didn't call you out (the new code is correct, even though
the existing code was not).

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]