Changeset 1792c7a in rtems
- Timestamp:
- 02/10/09 10:27:37 (15 years ago)
- Branches:
- 4.10, 4.11, 5, master
- Children:
- 5d49762
- Parents:
- 2e3f12c4
- Location:
- c/src/lib/libbsp/i386/pc386/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/lib/libbsp/i386/pc386/tools/ChangeLog
r2e3f12c4 r1792c7a 1 2009-02-10 Ralf Corsépius <ralf.corsepius@rtems.org> 2 3 * bin2boot.c: Use stdint/inttypes to workaround build warnings on 4 64bit hosts. 5 1 6 2008-08-19 Joel Sherrill <joel.sherrill@OARcorp.com> 2 7 -
c/src/lib/libbsp/i386/pc386/tools/bin2boot.c
r2e3f12c4 r1792c7a 6 6 #include <stdio.h> 7 7 #include <stdlib.h> 8 #include <stdint.h> 9 #include <inttypes.h> 8 10 #include <unistd.h> 9 11 #include <string.h> … … 38 40 extern int optind; 39 41 FILE *ofp, *ifp; 40 u nsigned longheaderAddr, addr1, addr2;42 uintptr_t headerAddr, addr1, addr2; 41 43 int size1, size2, len1, len2, len, imageCnt, cnt; 42 44 char *ofile, *ifile, *end; … … 184 186 /* Areas overlapped */ 185 187 printf("area overlapping: \n"); 186 printf("header address 0x%08lx, its memory size 0x%08 x\n",188 printf("header address 0x%08lx, its memory size 0x%08zx\n", 187 189 headerAddr, sizeof(buf)); 188 190 printf("first image address 0x%08lx, its memory size 0x%08x\n", … … 293 295 /* Areas overlapped */ 294 296 printf("area overlapping: \n"); 295 printf("header address 0x%08 lx, its memory size 0x%08x\n",297 printf("header address 0x%08" PRIxPTR ", its memory size 0x%08zx\n", 296 298 headerAddr, sizeof(buf)); 297 printf("first image address 0x%08 lx, its memory size 0x%08x\n",299 printf("first image address 0x%08" PRIxPTR ", its memory size 0x%08x\n", 298 300 addr1, size1); 299 printf("second image address 0x%08 lx, its memory size 0x%08x\n",301 printf("second image address 0x%08" PRIxPTR ", its memory size 0x%08x\n", 300 302 addr2, size2); 301 303 … … 391 393 if(verbose) 392 394 { 393 printf("header address 0x%08 lx, its memory size 0x%08x\n",395 printf("header address 0x%08" PRIxPTR ", its memory size 0x%08zx\n", 394 396 headerAddr, sizeof(buf)); 395 printf("first image address 0x%08 lx, its memory size 0x%08x\n",397 printf("first image address 0x%08" PRIxPTR ", its memory size 0x%08x\n", 396 398 addr1, size1); 397 printf("second image address 0x%08 lx, its memory size 0x%08x\n",399 printf("second image address 0x%08" PRIxPTR ", its memory size 0x%08x\n", 398 400 addr2, size2); 399 401 }
Note: See TracChangeset
for help on using the changeset viewer.