[PATCH] libdl/rtl-obj-cache.c: Change format specifiers to fix warnings
Cillian O'Donnell
cpodonnell8 at gmail.com
Thu Apr 6 15:51:01 UTC 2017
This get rid of 4 warnings. Tested on m68k-gen68340(32 bit) and
sparc64-niagara(64 bit). Let me know if this is ok.
diff --git a/cpukit/libdl/rtl-obj-cache.c b/cpukit/libdl/rtl-obj-cache.c
index a4676cf..912689d 100644
--- a/cpukit/libdl/rtl-obj-cache.c
+++ b/cpukit/libdl/rtl-obj-cache.c
@@ -78,11 +78,11 @@ rtems_rtl_obj_cache_read (rtems_rtl_obj_cache_t* cache,
struct stat sb;
if (rtems_rtl_trace (RTEMS_RTL_TRACE_CACHE))
- printf ("rtl: cache: %2d: fd=%d offset=%d length=%d area=[%d,%d]
cache=[%d,%d] size=%d\n",
- fd, cache->fd, (int) offset, (int) *length,
- (int) offset, (int) offset + *length,
- (int) cache->offset, (int) cache->offset + cache->level,
- (int) cache->file_size);
+ printf ("rtl: cache: %2d: fd=%d offset=%llu length=%d area=[%d,%llu]
cache=[%llu,%llu] size=%lu\n",
+ fd, cache->fd, offset, (int) *length,
+ (int) offset, offset + *length,
+ cache->offset, cache->offset + cache->level,
+ cache->file_size);
if (*length > cache->size)
{
@@ -172,10 +172,10 @@ rtems_rtl_obj_cache_read (rtems_rtl_obj_cache_t*
cache,
}
if (rtems_rtl_trace (RTEMS_RTL_TRACE_CACHE))
- printf ("rtl: cache: %2d: seek: offset=%d buffer_offset=%d read=%d
cache=[%d,%d] dist=%d\n",
- fd, (int) offset + buffer_offset, (int) buffer_offset, (int)
buffer_read,
- (int) offset, (int) offset + buffer_read,
- (int) (cache->file_size - offset));
+ printf ("rtl: cache: %2d: seek: offset=%llu buffer_offset=%lu
read=%d cache=[%d,%llu] dist=%llu\n",
+ fd, offset + buffer_offset, buffer_offset, (int) buffer_read,
+ (int) offset, offset + buffer_read,
+ (cache->file_size - offset));
if (lseek (fd, offset + buffer_offset, SEEK_SET) < 0)
{
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20170406/4e0098e5/attachment.html>
More information about the devel
mailing list