<div dir="ltr">I'm OK with both these patches but not in a good<div>position to apply them right now. </div><div><br></div><div>Gedare/Chris.. can you apply these?</div><div><br></div><div>Thanks.</div><div><br></div><div>--joel</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 7, 2017 at 9:11 AM, Cillian O'Donnell <span dir="ltr"><<a href="mailto:cpodonnell8@gmail.com" target="_blank">cpodonnell8@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">---<br>
cpukit/libdl/rtl-obj-cache.c | 21 ++++++++++++---------<br>
1 file changed, 12 insertions(+), 9 deletions(-)<br>
<br>
diff --git a/cpukit/libdl/rtl-obj-cache.c b/cpukit/libdl/rtl-obj-cache.c<br>
index a4676cf..c859f60 100644<br>
--- a/cpukit/libdl/rtl-obj-cache.c<br>
+++ b/cpukit/libdl/rtl-obj-cache.c<br>
@@ -22,6 +22,7 @@<br>
#include <stdio.h><br>
#include <string.h><br>
#include <unistd.h><br>
+#include <inttypes.h><br>
<br>
#include <rtems/rtl/rtl-allocator.h><br>
#include "rtl-obj-cache.h"<br>
@@ -78,11 +79,12 @@ rtems_rtl_obj_cache_read (rtems_rtl_obj_cache_t* cache,<br>
struct stat sb;<br>
<br>
if (rtems_rtl_trace (RTEMS_RTL_TRACE_CACHE))<br>
- printf ("rtl: cache: %2d: fd=%d offset=%d length=%d area=[%d,%d] cache=[%d,%d] size=%d\n",<br>
- fd, cache->fd, (int) offset, (int) *length,<br>
- (int) offset, (int) offset + *length,<br>
- (int) cache->offset, (int) cache->offset + cache->level,<br>
- (int) cache->file_size);<br>
+ printf ("rtl: cache: %2d: fd=%d offset=%" PRIdMAX "length=%zu area=[%"<br>
+ PRIdMAX ",%" PRIdMAX "] cache=[%" PRIdMAX ",%" PRIdMAX "] size=%zu\n",<br>
+ fd, cache->fd, offset, *length,<br>
+ offset, offset + *length,<br>
+ cache->offset, cache->offset + cache->level,<br>
+ cache->file_size);<br>
<br>
if (*length > cache->size)<br>
{<br>
@@ -172,10 +174,11 @@ rtems_rtl_obj_cache_read (rtems_rtl_obj_cache_t* cache,<br>
}<br>
<br>
if (rtems_rtl_trace (RTEMS_RTL_TRACE_CACHE))<br>
- printf ("rtl: cache: %2d: seek: offset=%d buffer_offset=%d read=%d cache=[%d,%d] dist=%d\n",<br>
- fd, (int) offset + buffer_offset, (int) buffer_offset, (int) buffer_read,<br>
- (int) offset, (int) offset + buffer_read,<br>
- (int) (cache->file_size - offset));<br>
+ printf ("rtl: cache: %2d: seek: offset=%" PRIdMAX "buffer_offset=%zu"<br>
+ "read=%zu cache=[%" PRIdMAX ",%" PRIdMAX "] dist=%" PRIdMAX "\n",<br>
+ fd, offset + buffer_offset, buffer_offset, buffer_read,<br>
+ offset, offset + buffer_read,<br>
+ (cache->file_size - offset));<br>
<br>
if (lseek (fd, offset + buffer_offset, SEEK_SET) < 0)<br>
{<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.7.4<br>
<br>
______________________________<wbr>_________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/<wbr>mailman/listinfo/devel</a><br>
</font></span></blockquote></div><br></div>