]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
block/vvfat: Disable debug message by default
authorThomas Huth <thuth@redhat.com>
Wed, 18 Jul 2018 15:08:29 +0000 (17:08 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 23 Jul 2018 14:50:43 +0000 (16:50 +0200)
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 <thuth@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/vvfat.c

index c7d2ed2d96ca05f9f089b79f9b3329289ed4ddf8..fc41841a5c3c8788a77c83f3a0556fa243215ff9 100644 (file)
@@ -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;