block/vvfat: Disable debug message by default
PATCH 1/1 block/vvfat: Disable debug message by default
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.
--- block/vvfat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
block/vvfat.c +2 -2
@@ -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;
Signature · 1 line
1.8.3.1
Quoted 15 lines · Thomas Huth
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 <[email protected]>--- block/vvfat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)block/vvfat.c +0
-0
block/vvfat.c static int vvfat_open(BlockDriverState *bs, QDict *options, int flags, · line 1252
Quoted 10 lines
block/vvfat.c +2
-2@@ -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.
Kevin Wolf
AppliedAm 18.07.2018 um 17:08 hat Thomas Huth geschrieben:
Quoted 5 lines
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 <[email protected]>
Thanks, applied to the block branch.
Kevin