[rtems commit] amba/ahbstat.c: Correct printf() format

Joel Sherrill joel at rtems.org
Mon Apr 24 22:21:55 UTC 2017


Module:    rtems
Branch:    master
Commit:    291298222734ddee9ddd1b8661ea3094b9970731
Changeset: http://git.rtems.org/rtems/commit/?id=291298222734ddee9ddd1b8661ea3094b9970731

Author:    Joel Sherrill <joel at rtems.org>
Date:      Sun Apr 23 12:03:22 2017 -0500

amba/ahbstat.c: Correct printf() format

---

 c/src/lib/libbsp/sparc/shared/amba/ahbstat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/c/src/lib/libbsp/sparc/shared/amba/ahbstat.c b/c/src/lib/libbsp/sparc/shared/amba/ahbstat.c
index 6153d56..8fff66c 100644
--- a/c/src/lib/libbsp/sparc/shared/amba/ahbstat.c
+++ b/c/src/lib/libbsp/sparc/shared/amba/ahbstat.c
@@ -154,7 +154,7 @@ void ahbstat_isr(void *arg)
 		rc = ahbstat_error(priv->minor, priv->regs, status, fadr);
 
 	if ((rc & 0x1) == 0) {
-		printk("\n### AHBSTAT: %s %s error of size %lu by master %d"
+		printk("\n### AHBSTAT: %s %s error of size %lu by master %ld"
 			" at 0x%08lx\n",
 			status & AHBSTAT_STS_CE ? "single" : "non-correctable",
 			status & AHBSTAT_STS_HW ? "write" : "read",



More information about the vc mailing list