Received: from eggs.gnu.org ([2001:4830:134:3::10]:49737) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ffoOx-00044C-MM for qemu-devel@nongnu.org; Wed, 18 Jul 2018 11:30:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ffoOw-00028G-Rm for qemu-devel@nongnu.org; Wed, 18 Jul 2018 11:30:03 -0400 References: <1531926509-8280-1-git-send-email-thuth@redhat.com> From: John Snow Message-ID: Date: Wed, 18 Jul 2018 11:29:57 -0400 MIME-Version: 1.0 In-Reply-To: <1531926509-8280-1-git-send-email-thuth@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Qemu-block] [PATCH] block/vvfat: Disable debug message by default List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Huth , Kevin Wolf , qemu-block@nongnu.org Cc: qemu-devel@nongnu.org, Max Reitz 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 > --- > 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