[rtems commit] dec21140.c: Fix printk() warnings

Joel Sherrill joel at rtems.org
Thu Apr 20 23:50:53 UTC 2017


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

Author:    Joel Sherrill <joel at rtems.org>
Date:      Thu Apr 20 20:38:42 2017 -0500

dec21140.c: Fix printk() warnings

---

 c/src/libchip/network/dec21140.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/c/src/libchip/network/dec21140.c b/c/src/libchip/network/dec21140.c
index 4b2371b..c5d25e9 100644
--- a/c/src/libchip/network/dec21140.c
+++ b/c/src/libchip/network/dec21140.c
@@ -932,7 +932,8 @@ rtems_dec21140_driver_attach (struct rtems_bsdnet_ifconfig *config, int attach)
 
    if ((unitNumber < 1) || (unitNumber > NDECDRIVER))
    {
-      printk("dec2114x : unit %i is invalid, must be (1 <= n <= %d)\n", unitNumber);
+      printk("dec2114x : unit %i is invalid, must be (1 <= n <= %d)\n",
+              unitNumber, NDECDRIVER);
       return 0;
    }
 
@@ -1022,8 +1023,7 @@ rtems_dec21140_driver_attach (struct rtems_bsdnet_ifconfig *config, int attach)
 
 
 #ifdef DEC_DEBUG
-   printk("dec2114x : unit %d base address %" PRIu32 ".\n", unitNumber,
-          sc->base );
+   printk("dec2114x : unit %d base address %p.\n", unitNumber, sc->base);
 #endif
 
 




More information about the vc mailing list