[rtems commit] bsps/umon: Fix format warnings

Sebastian Huber sebh at rtems.org
Wed Mar 8 14:37:10 UTC 2017


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Mar  7 14:53:15 2017 +0100

bsps/umon: Fix format warnings

---

 c/src/lib/libbsp/shared/umon/tfsDriver.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/c/src/lib/libbsp/shared/umon/tfsDriver.c b/c/src/lib/libbsp/shared/umon/tfsDriver.c
index b87af63..0195346 100644
--- a/c/src/lib/libbsp/shared/umon/tfsDriver.c
+++ b/c/src/lib/libbsp/shared/umon/tfsDriver.c
@@ -252,7 +252,7 @@ static int rtems_tfs_open_worker(
   char *buf, *fstr, *istr, *bstr, pathcopy[TFSNAMESIZE*3+1];
 
   if (RTEMS_TFS_DEBUG)
-    printk("_open_r(%s,0x%" PRIx32 ",0x%" PRIx32 ")\n",path,oflag,mode);
+    printk("_open_r(%s,0x%x,0x%" PRIx32 ")\n",path,oflag,mode);
 
   if (!beenhere) {
     newlib_tfdlock();
@@ -458,7 +458,7 @@ static ssize_t rtems_tfs_read(
   fd = (int) iop->data0;
 
   if (RTEMS_TFS_DEBUG)
-    printk("_read_r(%d,%" PRId32 ")\n",fd,count);
+    printk("_read_r(%d,%zi)\n",fd,count);
 
   if ((fd < 3) || (fd >= MAXTFDS))
     return(EBADF);
@@ -519,7 +519,7 @@ static ssize_t rtems_tfs_write(
   fd = (int) iop->data0;
 
   if (RTEMS_TFS_DEBUG)
-    printk("rtems_tfs_write(%d,%" PRId32" )\n",fd,count);
+    printk("rtems_tfs_write(%d,%zi)\n",fd,count);
 
   if ((fd <= 0) || (fd >= MAXTFDS)) {
     rtems_set_errno_and_return_minus_one (EBADF);



More information about the vc mailing list