[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH 03/14] net: Convert conditional compilation of d
From: |
Kevin Wolf |
Subject: |
Re: [Qemu-devel] [PATCH 03/14] net: Convert conditional compilation of debug printfs to regular ifs |
Date: |
Mon, 28 Apr 2014 13:57:57 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Am 28.04.2014 um 12:10 hat Stefan Hajnoczi geschrieben:
> On Mon, Apr 28, 2014 at 10:26:04AM +0200, Marc Marí wrote:
> > /* Debug EEPRO100 card. */
> > #if 0
> > -# define DEBUG_EEPRO100
> > +#define DEBUG_EEPRO100 1
> > #endif
>
> There seem to be a few ways of doing this (commenting out the line,
> putting it in #if 0, etc).
>
> Feel free to get rid of #define DEBUG_foo 1 lines completely, leaving
> just the #ifndef (I think Kevin suggested this).
/me is innocent.
> Editing the file is bad since it's easy to forget to remove changes when
> doing git-commit(1). Debugging should be enabled by recompiling instead
> of editing source files:
> $ ./configure --extra-cflags=-DDEBUG_FOO=1 && make
Generally I prefer editing the source file and recompiling just that one
file instead of reconfiguring and rebuilding the whole of qemu, so I'm
happy if there is an obvious line to uncomment when I want to enable
debugging.
Kevin
- [Qemu-devel] [PATCH 01/14] dma: Convert conditional compilation of debug printfs to regular ifs, Marc Marí, 2014/04/28
- [Qemu-devel] [PATCH 02/14] i386: Convert conditional compilation of debug printfs to regular ifs, Marc Marí, 2014/04/28
- [Qemu-devel] [PATCH 03/14] net: Convert conditional compilation of debug printfs to regular ifs, Marc Marí, 2014/04/28
- [Qemu-devel] [PATCH 04/14] isa: Convert conditional compilation of debug printfs to regular ifs, Marc Marí, 2014/04/28
- [Qemu-devel] [PATCH 05/14] pci-host: Convert conditional compilation of debug printfs to regular ifs, Marc Marí, 2014/04/28
- [Qemu-devel] [PATCH 06/14] s390x: Convert conditional compilation of debug printfs to regular ifs, Marc Marí, 2014/04/28
- [Qemu-devel] [PATCH 09/14] tpm: Convert conditional compilation of debug printfs to regular ifs, Marc Marí, 2014/04/28
- [Qemu-devel] [PATCH 07/14] scsi: Convert conditional compilation of debug printfs to regular ifs, Marc Marí, 2014/04/28
- [Qemu-devel] [PATCH 08/14] sd: Convert conditional compilation of debug printfs to regular ifs, Marc Marí, 2014/04/28
- [Qemu-devel] [PATCH 10/14] target-alpha: Convert conditional compilation of debug printfs to regular ifs, Marc Marí, 2014/04/28
- [Qemu-devel] [PATCH 11/14] slirp: Convert conditional compilation of debug printfs to regular ifs, Marc Marí, 2014/04/28
- [Qemu-devel] [PATCH 13/14] target-s390: Convert conditional compilation of debug printfs to regular ifs, Marc Marí, 2014/04/28