diff options
author | Gavin Shan <shangw@linux.vnet.ibm.com> | 2013-09-05 21:00:02 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-10-11 01:54:04 -0400 |
commit | 98cea5fec48a4af8498a0c5c5fccf64f82fc1ce2 (patch) | |
tree | 88a5852abb879b72c977c1f251461a4e455c9504 /arch/powerpc/platforms | |
parent | ff6bdcd967f6f5ca870a42a744acc8788faaa1d2 (diff) |
powerpc/eeh: Output error number
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>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r-- | arch/powerpc/platforms/powernv/eeh-ioda.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/powernv/eeh-ioda.c b/arch/powerpc/platforms/powernv/eeh-ioda.c index 34e0583106cf..f426f4c24fb6 100644 --- a/arch/powerpc/platforms/powernv/eeh-ioda.c +++ b/arch/powerpc/platforms/powernv/eeh-ioda.c | |||
@@ -583,8 +583,8 @@ static int ioda_eeh_get_log(struct eeh_pe *pe, int severity, | |||
583 | phb->diag.blob, PNV_PCI_DIAG_BUF_SIZE); | 583 | phb->diag.blob, PNV_PCI_DIAG_BUF_SIZE); |
584 | if (ret) { | 584 | if (ret) { |
585 | spin_unlock_irqrestore(&phb->lock, flags); | 585 | spin_unlock_irqrestore(&phb->lock, flags); |
586 | pr_warning("%s: Failed to get log for PHB#%x-PE#%x\n", | 586 | pr_warning("%s: Can't get log for PHB#%x-PE#%x (%lld)\n", |
587 | __func__, hose->global_number, pe->addr); | 587 | __func__, hose->global_number, pe->addr, ret); |
588 | return -EIO; | 588 | return -EIO; |
589 | } | 589 | } |
590 | 590 | ||