Skip to content

Commit 2738f35

Browse files
rddunlaptorvalds
authored andcommitted
hexagon: fix printk format warning in setup.c
Fix printk format warning in hexagon/kernel/setup.c: ../arch/hexagon/kernel/setup.c: In function 'setup_arch': ../arch/hexagon/kernel/setup.c:69:2: warning: format '%x' expects argument of type 'unsigned int', but argument 2 has type 'long unsigned int' [-Wformat] where: extern unsigned long __phys_offset; #define PHYS_OFFSET __phys_offset Link: http://lkml.kernel.org/r/adce8db5-4b01-dc10-7fbb-6a64e0787eb5@infradead.org Signed-off-by: Randy Dunlap <rdunlap@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent fe6bdfc commit 2738f35

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/hexagon/kernel/setup.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ void __init setup_arch(char **cmdline_p)
6666
*/
6767
__vmsetvec(_K_VM_event_vector);
6868

69-
printk(KERN_INFO "PHYS_OFFSET=0x%08x\n", PHYS_OFFSET);
69+
printk(KERN_INFO "PHYS_OFFSET=0x%08lx\n", PHYS_OFFSET);
7070

7171
/*
7272
* Simulator has a few differences from the hardware.

0 commit comments

Comments
 (0)