summaryrefslogtreecommitdiff
path: root/kexec/phys_to_virt.c
diff options
context:
space:
mode:
authorCong Wang <xiyou.wangcong@gmail.com>2012-03-08 14:39:38 +0800
committerSimon Horman <horms@verge.net.au>2012-03-15 15:09:41 +0900
commit28d4ab53280853d2aeefdfb7c369331e89ab9ac2 (patch)
treec4dcab7622680c57bfc499c36b9271335ffea45e /kexec/phys_to_virt.c
parentf1facd4b11aa141ffd9bbacb2631ad18dc33669c (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