Skip to content

Commit 308e610

Browse files
JoePerchesgregungerer
authored andcommitted
arch/m68knommu: Convert #ifdef DEBUG printk(KERN_DEBUG to pr_debug(
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Greg Ungerer <gerg@uclinux.org>
1 parent fb29ad7 commit 308e610

File tree

2 files changed

+8
-12
lines changed

2 files changed

+8
-12
lines changed

arch/m68knommu/kernel/setup.c

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -166,15 +166,13 @@ void __init setup_arch(char **cmdline_p)
166166
printk(KERN_INFO "Motorola M5235EVB support (C)2005 Syn-tech Systems, Inc. (Jate Sujjavanich)\n");
167167
#endif
168168

169-
#ifdef DEBUG
170-
printk(KERN_DEBUG "KERNEL -> TEXT=0x%06x-0x%06x DATA=0x%06x-0x%06x "
171-
"BSS=0x%06x-0x%06x\n", (int) &_stext, (int) &_etext,
172-
(int) &_sdata, (int) &_edata,
173-
(int) &_sbss, (int) &_ebss);
174-
printk(KERN_DEBUG "MEMORY -> ROMFS=0x%06x-0x%06x MEM=0x%06x-0x%06x\n ",
175-
(int) &_ebss, (int) memory_start,
176-
(int) memory_start, (int) memory_end);
177-
#endif
169+
pr_debug("KERNEL -> TEXT=0x%06x-0x%06x DATA=0x%06x-0x%06x "
170+
"BSS=0x%06x-0x%06x\n", (int) &_stext, (int) &_etext,
171+
(int) &_sdata, (int) &_edata,
172+
(int) &_sbss, (int) &_ebss);
173+
pr_debug("MEMORY -> ROMFS=0x%06x-0x%06x MEM=0x%06x-0x%06x\n ",
174+
(int) &_ebss, (int) memory_start,
175+
(int) memory_start, (int) memory_end);
178176

179177
/* Keep a copy of command line */
180178
*cmdline_p = &command_line[0];

arch/m68knommu/mm/init.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,7 @@ void __init mem_init(void)
126126
unsigned long start_mem = memory_start; /* DAVIDM - these must start at end of kernel */
127127
unsigned long end_mem = memory_end; /* DAVIDM - this must not include kernel stack at top */
128128

129-
#ifdef DEBUG
130-
printk(KERN_DEBUG "Mem_init: start=%lx, end=%lx\n", start_mem, end_mem);
131-
#endif
129+
pr_debug("Mem_init: start=%lx, end=%lx\n", start_mem, end_mem);
132130

133131
end_mem &= PAGE_MASK;
134132
high_memory = (void *) end_mem;

0 commit comments

Comments
 (0)