diff options
author | Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com> | 2013-04-28 05:37:25 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-04-30 01:59:39 -0400 |
commit | 4b8f63d92e30ffd33bd77e028918919be2d926e6 (patch) | |
tree | 4a050d4e72163cc207f33a26cbe2ae04592d87cd /arch | |
parent | 601abdc3b4773afb9a80afc9c4c024724b7c5f4e (diff) |
powerpc: Use signed formatting when printing error
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>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/powerpc/platforms/pseries/lpar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/pseries/lpar.c b/arch/powerpc/platforms/pseries/lpar.c index 299731e9036b..9b02ab14a5cd 100644 --- a/arch/powerpc/platforms/pseries/lpar.c +++ b/arch/powerpc/platforms/pseries/lpar.c | |||
@@ -155,7 +155,7 @@ static long pSeries_lpar_hpte_insert(unsigned long hpte_group, | |||
155 | */ | 155 | */ |
156 | if (unlikely(lpar_rc != H_SUCCESS)) { | 156 | if (unlikely(lpar_rc != H_SUCCESS)) { |
157 | if (!(vflags & HPTE_V_BOLTED)) | 157 | if (!(vflags & HPTE_V_BOLTED)) |
158 | pr_devel(" lpar err %lu\n", lpar_rc); | 158 | pr_devel(" lpar err %ld\n", lpar_rc); |
159 | return -2; | 159 | return -2; |
160 | } | 160 | } |
161 | if (!(vflags & HPTE_V_BOLTED)) | 161 | if (!(vflags & HPTE_V_BOLTED)) |