From ef5da325ad35b64a8f806dd106844effb74316a0 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Thu, 27 May 2010 16:32:46 +0000 Subject: =?UTF-8?q?2010-05-27=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * libfs/src/rfs/rtems-rfs-rtems.c: Use size_t instead of int for pathlen. Use %zi to print pathlen. --- cpukit/ChangeLog | 3 +++ cpukit/libfs/src/rfs/rtems-rfs-rtems.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'cpukit') diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 067dc5a691..274490c78d 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,5 +1,8 @@ 2010-05-27 Ralf Corsépius + * libfs/src/rfs/rtems-rfs-rtems.c: + Use size_t instead of int for pathlen. + Use %zi to print pathlen. * libcsupport/include/rtems/libio.h: Use size_t instead of int for pathnamelen. * libcsupport/include/rtems/libio_.h, libcsupport/src/eval.c: diff --git a/cpukit/libfs/src/rfs/rtems-rfs-rtems.c b/cpukit/libfs/src/rfs/rtems-rfs-rtems.c index c0b2751893..ac102afd1a 100644 --- a/cpukit/libfs/src/rfs/rtems-rfs-rtems.c +++ b/cpukit/libfs/src/rfs/rtems-rfs-rtems.c @@ -58,7 +58,7 @@ */ int rtems_rfs_rtems_eval_path (const char* path, - int pathlen, + size_t pathlen, int flags, rtems_filesystem_location_info_t* pathloc) { @@ -72,7 +72,7 @@ rtems_rfs_rtems_eval_path (const char* path, int rc; if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_EVAL_PATH)) - printf ("rtems-rfs-rtems: eval-path: in: path:%s pathlen:%i ino:%ld\n", + printf ("rtems-rfs-rtems: eval-path: in: path:%s pathlen:%zi ino:%ld\n", path, pathlen, ino); /* -- cgit v1.2.3