qemu-block
[Top][All Lists]
Advanced

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

Re: [Qemu-block] [PATCH] block/vvfat: Disable debug message by default


From: John Snow
Subject: Re: [Qemu-block] [PATCH] block/vvfat: Disable debug message by default
Date: Wed, 18 Jul 2018 11:29:57 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0


On 07/18/2018 11:08 AM, Thomas Huth wrote:
> It's annoying to see this debug message every time you use vvfat.
> Disable it with the DLOG() macro by default, as it is done with the
> other debug messages in this file.
> 
> Signed-off-by: Thomas Huth <address@hidden>
> ---
>  block/vvfat.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/block/vvfat.c b/block/vvfat.c
> index c7d2ed2..fc41841 100644
> --- a/block/vvfat.c
> +++ b/block/vvfat.c
> @@ -1245,8 +1245,8 @@ static int vvfat_open(BlockDriverState *bs, QDict 
> *options, int flags,
>      s->fat2 = NULL;
>      s->downcase_short_names = 1;
>  
> -    fprintf(stderr, "vvfat %s chs %d,%d,%d\n",
> -            dirname, cyls, heads, secs);
> +    DLOG(fprintf(stderr, "vvfat %s chs %d,%d,%d\n",
> +                 dirname, cyls, heads, secs));
>  
>      s->sector_count = cyls * heads * secs - s->offset_to_bootsector;
>  
> 

Makes sense as a minimal change without doing more... real work here.

Reviewed-by: John Snow <address@hidden>



reply via email to

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