diff options
author | Horms <horms@verge.net.au> | 2006-12-20 15:55:10 +0900 |
---|---|---|
committer | Simon Horman <horms@verge.net.au> | 2006-12-21 15:29:17 +0900 |
commit | cdab051ce335c98e265a7824280755368799bd7a (patch) | |
tree | abaebbb28b99d8aef41c4b903fd36092a77ac111 /kexec/crashdump.c | |
parent | 1f0c1b411631a4ae320a7b450adee8475a8a0e92 (diff) |
kexec-tool: Use the appropriate format in debug print statements
Use the appropriate format in debug print statements.
This is kind of messy because the same code is compiled
with different definitions of the PHDR type. The solution
below is the best I can think of at this time.
Cc: Magnus Damm <magnus.damm@gmail.com>
Cc: Sachin P. Sant <sachinp@in.ibm.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/crashdump.c')
-rw-r--r-- | kexec/crashdump.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kexec/crashdump.c b/kexec/crashdump.c index 1cb8123..f6fd911 100644 --- a/kexec/crashdump.c +++ b/kexec/crashdump.c @@ -31,18 +31,22 @@ /* include "crashdump-elf.c" twice to create two functions from one */ +#define ELF_WIDTH 64 #define FUNC crash_create_elf64_headers #define EHDR Elf64_Ehdr #define PHDR Elf64_Phdr #include "crashdump-elf.c" +#undef ELF_WIDTH #undef PHDR #undef EHDR #undef FUNC +#define ELF_WIDTH 32 #define FUNC crash_create_elf32_headers #define EHDR Elf32_Ehdr #define PHDR Elf32_Phdr #include "crashdump-elf.c" +#undef ELF_WIDTH #undef PHDR #undef EHDR #undef FUNC |