diff options
author | Peng Fan <van.freenix@gmail.com> | 2013-09-05 22:03:10 +0800 |
---|---|---|
committer | Peng Fan <van.freenix@gmail.com> | 2013-09-05 22:03:10 +0800 |
commit | 0048c847b0ae5df3f06e52bb8cb8f58196ca33ca (patch) | |
tree | b5e761d32be00acb616e2e206b02b9f82ae26c55 /rtl-rap.c | |
parent | 633c0e0d23c4b874c71595a4d9d13b8d4acdf417 (diff) |
Fix warnings
Diffstat (limited to 'rtl-rap.c')
-rw-r--r-- | rtl-rap.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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; |