Skip to contentSkip to conversation

block/vvfat: Disable debug message by default

PATCH Applied Thomas Huth 3 participants 3 messages Jul 18, 2018 – Jul 23, 2018 Block layer

lore
Share & tools
lore
#0 lore raw

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
index c7d2ed2..fc41841 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
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.

---
 block/vvfat.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
block/vvfat.c +0 -0
index c7d2ed2..fc41841 100644

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.

Applied
#2 lore raw
In reply to Thomas Huth

Am 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.

Thanks, applied to the block branch.

Kevin