lmb: Fix compile warning
authorKumar Gala <galak@kernel.crashing.org>
Sun, 18 May 2008 18:18:01 +0000 (13:18 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Mon, 19 May 2008 04:35:43 +0000 (23:35 -0500)
lib/lmb.c: In function 'lmb_dump_all':
lib/lmb.c:51: warning: format '%lx' expects type 'long unsigned int', but argument 2 has type 'u64'

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
lib/lmb.c

index 867f7b5a8231b9c2cc4fc81e1f269689259857e1..5d7b9286503ece62fc47997f8085650779e99526 100644 (file)
--- a/lib/lmb.c
+++ b/lib/lmb.c
@@ -48,7 +48,8 @@ void lmb_dump_all(void)
        }
 
        pr_info("    reserved.cnt         = 0x%lx\n", lmb.reserved.cnt);
-       pr_info("    reserved.size        = 0x%lx\n", lmb.reserved.size);
+       pr_info("    reserved.size        = 0x%llx\n",
+           (unsigned long long)lmb.memory.size);
        for (i=0; i < lmb.reserved.cnt ;i++) {
                pr_info("    reserved.region[0x%lx].base       = 0x%llx\n",
                    i, (unsigned long long)lmb.reserved.region[i].base);