Patchwork [3/6] powerpc/eeh: Output error number

login
register
mail settings
Submitter Gavin Shan
Date Sept. 6, 2013, 1 a.m.
Message ID <1378429205-16248-4-git-send-email-shangw@linux.vnet.ibm.com>
Download mbox | patch
Permalink /patch/273000/
State Accepted
Commit 98cea5fec48a4af8498a0c5c5fccf64f82fc1ce2
Delegated to: Benjamin Herrenschmidt
Headers show

Comments

Gavin Shan - Sept. 6, 2013, 1 a.m.
The patch prints the error number while failing to retrieve error
log from firmware. It's helpful for debugging.

Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com>
---
 arch/powerpc/platforms/powernv/eeh-ioda.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/arch/powerpc/platforms/powernv/eeh-ioda.c b/arch/powerpc/platforms/powernv/eeh-ioda.c
index 3ee44b0..d60ba3b 100644
--- a/arch/powerpc/platforms/powernv/eeh-ioda.c
+++ b/arch/powerpc/platforms/powernv/eeh-ioda.c
@@ -590,8 +590,8 @@  static int ioda_eeh_get_log(struct eeh_pe *pe, int severity,
 			phb->diag.blob, PNV_PCI_DIAG_BUF_SIZE);
 	if (ret) {
 		spin_unlock_irqrestore(&phb->lock, flags);
-		pr_warning("%s: Failed to get log for PHB#%x-PE#%x\n",
-			   __func__, hose->global_number, pe->addr);
+		pr_warning("%s: Can't get log for PHB#%x-PE#%x (%lld)\n",
+			   __func__, hose->global_number, pe->addr, ret);
 		return -EIO;
 	}