diff mbox

[04/14] phb4: Fix copy/paste typo in error logging

Message ID 20170726105013.24948-4-mikey@neuling.org
State Accepted
Headers show

Commit Message

Michael Neuling July 26, 2017, 10:50 a.m. UTC
Signed-off-by: Michael Neuling <mikey@neuling.org>
---
 hw/phb4.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/hw/phb4.c b/hw/phb4.c
index 827808c14d..4fc923723a 100644
--- a/hw/phb4.c
+++ b/hw/phb4.c
@@ -1851,7 +1851,7 @@  static void phb4_read_phb_status(struct phb4 *p,
 	stat->phbPblErrorStatus = phb4_read_reg_asb(p, PHB_PBL_ERR_STATUS);
 	stat->phbPblFirstErrorStatus = phb4_read_reg_asb(p, PHB_PBL_ERR1_STATUS);
 	stat->phbPblErrorLog0 = phb4_read_reg_asb(p, PHB_PBL_ERR_LOG_0);
-	stat->phbPblErrorLog1 = phb4_read_reg_asb(p, PHB_PBL_ERR_LOG_0);
+	stat->phbPblErrorLog1 = phb4_read_reg_asb(p, PHB_PBL_ERR_LOG_1);
 
 	stat->phbPcieDlpErrorStatus = phb4_read_reg_asb(p, PHB_PCIE_DLP_ERR_STATUS);
 	stat->phbPcieDlpErrorLog1 = phb4_read_reg_asb(p, PHB_PCIE_DLP_ERRLOG1);