]> err.no Git - linux-2.6/commitdiff
[POWERPC] Fix slb.c compile warnings
authorGeoff Levand <geoffrey.levand@am.sony.com>
Wed, 30 Apr 2008 22:24:58 +0000 (08:24 +1000)
committerPaul Mackerras <paulus@samba.org>
Fri, 2 May 2008 05:00:44 +0000 (15:00 +1000)
Arrange for a syntax check to always be done on the powerpc/mm/slb.c
DBG() macro by defining it to pr_debug() for non-debug builds.

Also, fix these related compile warnings:

  slb.c:273: warning: format '%04x' expects type 'unsigned int', but argument 2 has type 'long unsigned int
  slb.c:274: warning: format '%04x' expects type 'unsigned int', but argument 2 has type 'long unsigned int'

Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/mm/slb.c

index 906daeda59a8ff431d6bee026af51f55e4318512..497ec059bc82b741665835a1280dcd1203eb20f9 100644 (file)
@@ -30,7 +30,7 @@
 #ifdef DEBUG
 #define DBG(fmt...) udbg_printf(fmt)
 #else
-#define DBG(fmt...)
+#define DBG pr_debug
 #endif
 
 extern void slb_allocate_realmode(unsigned long ea);
@@ -279,8 +279,8 @@ void slb_initialize(void)
                patch_slb_encoding(slb_compare_rr_to_size,
                                   mmu_slb_size);
 
-               DBG("SLB: linear  LLP = %04x\n", linear_llp);
-               DBG("SLB: io      LLP = %04x\n", io_llp);
+               DBG("SLB: linear  LLP = %04lx\n", linear_llp);
+               DBG("SLB: io      LLP = %04lx\n", io_llp);
        }
 
        get_paca()->stab_rr = SLB_NUM_BOLTED;