diff options
author | Cong Wang <xiyou.wangcong@gmail.com> | 2012-03-08 14:39:38 +0800 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2012-03-15 15:09:41 +0900 |
commit | 28d4ab53280853d2aeefdfb7c369331e89ab9ac2 (patch) | |
tree | c4dcab7622680c57bfc499c36b9271335ffea45e /kexec/arch/i386/x86-linux-setup.c | |
parent | f1facd4b11aa141ffd9bbacb2631ad18dc33669c (diff) |
Add generic debug option
Currently the debugging code is under #ifdef DEBUG, which
means when we want to debug, we have to re-compile the source
code with -DDEBUG. This is not convenient, we want to have
a generic --debug option so that we can enable debugging code
without re-compiling.
This patch moves the arch-specific --debug to generic place
and moves code under #ifdef DEBUG to --debug on x86.
BTW, the size of kexec binary increases very little after this patch.
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/arch/i386/x86-linux-setup.c')
-rw-r--r-- | kexec/arch/i386/x86-linux-setup.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/kexec/arch/i386/x86-linux-setup.c b/kexec/arch/i386/x86-linux-setup.c index 08d64ca..b7ab8ea 100644 --- a/kexec/arch/i386/x86-linux-setup.c +++ b/kexec/arch/i386/x86-linux-setup.c @@ -13,7 +13,6 @@ * GNU General Public License for more details. * */ -/* #define DEBUG 1 */ #define _GNU_SOURCE #include <stdint.h> #include <stdio.h> |