diff options
author | WANG Cong <xiyou.wangcong@gmail.com> | 2011-11-16 21:19:44 +0800 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2011-11-18 11:12:35 +0900 |
commit | cf0ad87f28d48d3414c796734563d8681b751a20 (patch) | |
tree | 1a806d5619c6664fa73d88baf67948d10d2e6cfd | |
parent | 920f4ededd9627add3ca1cdea965d204f2ca43a7 (diff) | |
download | kexec-tools-cf0ad87f28d48d3414c796734563d8681b751a20.tar.gz |
kexec: improve the debug printf in get_crash_notes_per_cpu()
Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r-- | kexec/crashdump.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kexec/crashdump.c b/kexec/crashdump.c index 945b0525..e7ac42cf 100644 --- a/kexec/crashdump.c +++ b/kexec/crashdump.c @@ -102,8 +102,8 @@ int get_crash_notes_per_cpu(int cpu, uint64_t *addr, uint64_t *len) die("Cannot parse %s: %s\n", crash_notes, strerror(errno)); *addr = (uint64_t) temp; *len = MAX_NOTE_BYTES; /* we should get this from the kernel instead */ -#if 0 - printf("crash_notes addr = %Lx\n", *addr); +#ifdef DEBUG + printf("%s: crash_notes addr = %Lx\n", __function__, *addr); #endif fclose(fp); |