summaryrefslogtreecommitdiff
path: root/kexec
diff options
context:
space:
mode:
authorGeoff Levand <geoffrey.levand@am.sony.com>2007-05-09 14:40:27 -0700
committerSimon Horman <horms@verge.net.au>2007-05-10 11:52:20 +0900
commit13ceb63c96c26e1964dea12576d7245853a83842 (patch)
treed38759d98ae1f3818aade6c500b216a1a25f5d7d /kexec
parente6a23f7d355685f01f6a4ce7c9d37deb7458cf90 (diff)
kexec rename dprintf to dbgprintf
The recently introduce kexec debug routine dprintf clashes with an existing libc symbol. Rename dprintf to dbgprintf. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec')
-rw-r--r--kexec/arch/i386/crashdump-x86.c4
-rw-r--r--kexec/arch/i386/kexec-bzImage.c8
-rw-r--r--kexec/arch/i386/x86-linux-setup.c4
-rw-r--r--kexec/arch/ppc64/kexec-ppc64.c2
-rw-r--r--kexec/crashdump-elf.c16
-rw-r--r--kexec/kexec.h4
6 files changed, 19 insertions, 19 deletions
diff --git a/kexec/arch/i386/crashdump-x86.c b/kexec/arch/i386/crashdump-x86.c
index c5827ae..39fb922 100644
--- a/kexec/arch/i386/crashdump-x86.c
+++ b/kexec/arch/i386/crashdump-x86.c
@@ -515,7 +515,7 @@ int load_crashdump_segments(struct kexec_info *info, char* mod_cmdline,
memset(tmp, 0, sz);
info->backup_start = add_buffer(info, tmp, sz, sz, align,
0, max_addr, -1);
- dprintf("Created backup segment at 0x%lx\n", info->backup_start);
+ dbgprintf("Created backup segment at 0x%lx\n", info->backup_start);
if (delete_memmap(memmap_p, info->backup_start, sz) < 0)
return -1;
@@ -544,7 +544,7 @@ int load_crashdump_segments(struct kexec_info *info, char* mod_cmdline,
*/
elfcorehdr = add_buffer(info, tmp, sz, 16*1024, align, min_base,
max_addr, -1);
- dprintf("Created elf header segment at 0x%lx\n", elfcorehdr);
+ dbgprintf("Created elf header segment at 0x%lx\n", elfcorehdr);
if (delete_memmap(memmap_p, elfcorehdr, sz) < 0)
return -1;
cmdline_add_memmap(mod_cmdline, memmap_p);
diff --git a/kexec/arch/i386/kexec-bzImage.c b/kexec/arch/i386/kexec-bzImage.c
index 8acd0bd..8fde799 100644
--- a/kexec/arch/i386/kexec-bzImage.c
+++ b/kexec/arch/i386/kexec-bzImage.c
@@ -136,7 +136,7 @@ int do_bzImage_load(struct kexec_info *info,
if (setup_header.protocol_version >= 0x0205) {
relocatable_kernel = setup_header.relocatable_kernel;
- dprintf("bzImage is relocatable\n");
+ dbgprintf("bzImage is relocatable\n");
}
/* Can't use bzImage for crash dump purposes with real mode entry */
@@ -192,7 +192,7 @@ int do_bzImage_load(struct kexec_info *info,
else
elf_rel_build_load(info, &info->rhdr, purgatory, purgatory_size,
0x3000, 640*1024, -1, 0);
- dprintf("Loaded purgatory at addr 0x%lx\n", info->rhdr.rel_addr);
+ dbgprintf("Loaded purgatory at addr 0x%lx\n", info->rhdr.rel_addr);
/* The argument/parameter segment */
setup_size = kern16_size + command_line_len;
real_mode = xmalloc(setup_size);
@@ -214,7 +214,7 @@ int do_bzImage_load(struct kexec_info *info,
add_segment(info, real_mode, setup_size, SETUP_BASE, setup_size);
setup_base = SETUP_BASE;
}
- dprintf("Loaded real-mode code and command line at 0x%lx\n",
+ dbgprintf("Loaded real-mode code and command line at 0x%lx\n",
setup_base);
/* Verify purgatory loads higher than the parameters */
@@ -246,7 +246,7 @@ int do_bzImage_load(struct kexec_info *info,
kernel32_load_addr, size);
}
- dprintf("Loaded 32bit kernel at 0x%lx\n", kernel32_load_addr);
+ dbgprintf("Loaded 32bit kernel at 0x%lx\n", kernel32_load_addr);
/* Tell the kernel what is going on */
setup_linux_bootloader_parameters(info, real_mode, setup_base,
diff --git a/kexec/arch/i386/x86-linux-setup.c b/kexec/arch/i386/x86-linux-setup.c
index f502151..0bf487b 100644
--- a/kexec/arch/i386/x86-linux-setup.c
+++ b/kexec/arch/i386/x86-linux-setup.c
@@ -61,7 +61,7 @@ void setup_linux_bootloader_parameters(
initrd_addr_max = DEFAULT_INITRD_ADDR_MAX;
if (real_mode->protocol_version >= 0x0203) {
initrd_addr_max = real_mode->initrd_addr_max;
- dprintf("initrd_addr_max is 0x%lx\n", initrd_addr_max);
+ dbgprintf("initrd_addr_max is 0x%lx\n", initrd_addr_max);
}
/* Load the initrd if we have one */
@@ -69,7 +69,7 @@ void setup_linux_bootloader_parameters(
initrd_base = add_buffer(info,
initrd_buf, initrd_size, initrd_size,
4096, INITRD_BASE, initrd_addr_max, -1);
- dprintf("Loaded initrd at 0x%lx size 0x%lx\n", initrd_base,
+ dbgprintf("Loaded initrd at 0x%lx size 0x%lx\n", initrd_base,
initrd_size);
} else {
initrd_base = 0;
diff --git a/kexec/arch/ppc64/kexec-ppc64.c b/kexec/arch/ppc64/kexec-ppc64.c
index 71cf7e5..63a7f1c 100644
--- a/kexec/arch/ppc64/kexec-ppc64.c
+++ b/kexec/arch/ppc64/kexec-ppc64.c
@@ -207,7 +207,7 @@ static int get_base_ranges(void)
((unsigned long long *)buf)[1];
base_memory_range[local_memory_ranges].type = RANGE_RAM;
local_memory_ranges++;
- dprintf("%016llx-%016llx : %x\n",
+ dbgprintf("%016llx-%016llx : %x\n",
base_memory_range[local_memory_ranges-1].start,
base_memory_range[local_memory_ranges-1].end,
base_memory_range[local_memory_ranges-1].type);
diff --git a/kexec/crashdump-elf.c b/kexec/crashdump-elf.c
index 58fef9b..c048f75 100644
--- a/kexec/crashdump-elf.c
+++ b/kexec/crashdump-elf.c
@@ -4,17 +4,17 @@
#endif
#if (ELF_WIDTH == 64)
-#define dprintf_phdr(prefix, phdr) \
+#define dbgprintf_phdr(prefix, phdr) \
do { \
- dprintf("%s: p_type = %u, p_offset = 0x%lx p_paddr = 0x%lx " \
+ dbgprintf("%s: p_type = %u, p_offset = 0x%lx p_paddr = 0x%lx " \
"p_vaddr = 0x%lx p_filesz = 0x%lx p_memsz = 0x%lx\n", \
(prefix), (phdr)->p_type, (phdr)->p_offset, (phdr)->p_paddr, \
(phdr)->p_vaddr, (phdr)->p_filesz, (phdr)->p_memsz); \
} while(0)
#else
-#define dprintf_phdr(prefix, phdr) \
+#define dbgprintf_phdr(prefix, phdr) \
do { \
- dprintf("%s: p_type = %u, p_offset = 0x%x " "p_paddr = 0x%x " \
+ dbgprintf("%s: p_type = %u, p_offset = 0x%x " "p_paddr = 0x%x " \
"p_vaddr = 0x%x p_filesz = 0x%x p_memsz = 0x%x\n", \
(prefix), (phdr)->p_type, (phdr)->p_offset, (phdr)->p_paddr, \
(phdr)->p_vaddr, (phdr)->p_filesz, (phdr)->p_memsz); \
@@ -143,7 +143,7 @@ int FUNC(struct kexec_info *info,
/* Increment number of program headers. */
(elf->e_phnum)++;
- dprintf_phdr("Elf header", phdr);
+ dbgprintf_phdr("Elf header", phdr);
}
/* Setup an PT_LOAD type program header for the region where
@@ -160,7 +160,7 @@ int FUNC(struct kexec_info *info,
phdr->p_filesz = phdr->p_memsz = info->kern_size;
phdr->p_align = 0;
(elf->e_phnum)++;
- dprintf_phdr("Kernel text Elf header", phdr);
+ dbgprintf_phdr("Kernel text Elf header", phdr);
}
/* Setup PT_LOAD type program header for every system RAM chunk.
@@ -201,9 +201,9 @@ int FUNC(struct kexec_info *info,
/* Increment number of program headers. */
(elf->e_phnum)++;
- dprintf_phdr("Elf header", phdr);
+ dbgprintf_phdr("Elf header", phdr);
}
return 0;
}
-#undef dprintf_phdr
+#undef dbgprintf_phdr
diff --git a/kexec/kexec.h b/kexec/kexec.h
index 6bb81a0..2ec706f 100644
--- a/kexec/kexec.h
+++ b/kexec/kexec.h
@@ -218,10 +218,10 @@ int parse_iomem_single(char *str, uint64_t *start, uint64_t *end);
#define MAX_LINE 160
#ifdef DEBUG
-#define dprintf(_args...) do {printf(_args);} while(0)
+#define dbgprintf(_args...) do {printf(_args);} while(0)
#else
static inline int __attribute__ ((format (printf, 1, 2)))
- dprintf(const char *fmt, ...) {return 0;}
+ dbgprintf(const char *fmt, ...) {return 0;}
#endif
#endif /* KEXEC_H */