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/phys_to_virt.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/phys_to_virt.c')
0 files changed, 0 insertions, 0 deletions