summaryrefslogtreecommitdiff
path: root/rtl-rap.c
diff options
context:
space:
mode:
authorPeng Fan <van.freenix@gmail.com>2013-09-05 22:03:10 +0800
committerPeng Fan <van.freenix@gmail.com>2013-09-05 22:03:10 +0800
commit0048c847b0ae5df3f06e52bb8cb8f58196ca33ca (patch)
treeb5e761d32be00acb616e2e206b02b9f82ae26c55 /rtl-rap.c
parent633c0e0d23c4b874c71595a4d9d13b8d4acdf417 (diff)
Fix warnings
Diffstat (limited to 'rtl-rap.c')
-rw-r--r--rtl-rap.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/rtl-rap.c b/rtl-rap.c
index 2bfaead..be11fe9 100644
--- a/rtl-rap.c
+++ b/rtl-rap.c
@@ -440,7 +440,7 @@ rtems_rtl_rap_load_details (rtems_rtl_rap_t* rap, rtems_rtl_obj_t* obj)
section_detail* tmp2;
uint32_t obj_detail_size;
uint32_t pos = 0;
- uint32_t i,j;
+ int i,j;
obj_detail_size = sizeof (struct link_map) * obj->obj_num;
@@ -515,8 +515,8 @@ rtems_rtl_rap_load_details (rtems_rtl_rap_t* rap, rtems_rtl_obj_t* obj)
{
if (rtems_rtl_trace (RTEMS_RTL_TRACE_DETAIL))
{
- printf ("File %u: %s\n", i, ((struct link_map*)obj->detail + i)->name);
- printf ("Section: %u sections\n", obj->sec_num[i]);
+ printf ("File %d: %s\n", i, ((struct link_map*) obj->detail + i)->name);
+ printf ("Section: %d sections\n",(unsigned int) obj->sec_num[i]);
}
((struct link_map*)obj->detail + i)->sec_detail = tmp2;
@@ -548,7 +548,8 @@ rtems_rtl_rap_load_details (rtems_rtl_rap_t* rap, rtems_rtl_obj_t* obj)
if (rtems_rtl_trace (RTEMS_RTL_TRACE_DETAIL))
{
printf ("name:%16s offset:0x%08x rap_id:%d size:0x%x\n",
- tmp2->name, tmp2->offset, tmp2->rap_id, tmp2->size);
+ tmp2->name, (unsigned int) tmp2->offset,
+ (unsigned int) tmp2->rap_id, (unsigned int) tmp2->size);
}
tmp2 += 1;