powerpc: Use signed formatting when printing error
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Sun, 28 Apr 2013 09:37:25 +0000 (09:37 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 30 Apr 2013 05:59:39 +0000 (15:59 +1000)
PAPR defines these errors as negative values. So print them accordingly
for easy debugging.

Acked-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/lpar.c

index 299731e9036b5e4361d7a49ca52938d0953d96e4..9b02ab14a5cdd542ccd9e62980a744befb19c215 100644 (file)
@@ -155,7 +155,7 @@ static long pSeries_lpar_hpte_insert(unsigned long hpte_group,
         */
        if (unlikely(lpar_rc != H_SUCCESS)) {
                if (!(vflags & HPTE_V_BOLTED))
-                       pr_devel(" lpar err %lu\n", lpar_rc);
+                       pr_devel(" lpar err %ld\n", lpar_rc);
                return -2;
        }
        if (!(vflags & HPTE_V_BOLTED))