Changeset 1792c7a in rtems


Ignore:
Timestamp:
Feb 10, 2009, 10:27:37 AM (12 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 5, master
Children:
5d49762
Parents:
2e3f12c4
Message:

2009-02-10 Ralf Corsépius <ralf.corsepius@…>

  • bin2boot.c: Use stdint/inttypes to workaround build warnings on 64bit hosts.
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  
     12009-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
    162008-08-19      Joel Sherrill <joel.sherrill@OARcorp.com>
    27
  • c/src/lib/libbsp/i386/pc386/tools/bin2boot.c

    r2e3f12c4 r1792c7a  
    66#include <stdio.h>
    77#include <stdlib.h>
     8#include <stdint.h>
     9#include <inttypes.h>
    810#include <unistd.h>
    911#include <string.h>
     
    3840  extern   int optind;
    3941  FILE     *ofp, *ifp;
    40   unsigned long headerAddr, addr1, addr2;
     42  uintptr_t headerAddr, addr1, addr2;
    4143  int      size1, size2, len1, len2, len, imageCnt, cnt;
    4244  char     *ofile, *ifile, *end;
     
    184186      /* Areas overlapped */
    185187      printf("area overlapping: \n");
    186       printf("header address      0x%08lx, its memory size 0x%08x\n",
     188      printf("header address      0x%08lx, its memory size 0x%08zx\n",
    187189             headerAddr, sizeof(buf));
    188190      printf("first image address 0x%08lx, its memory size 0x%08x\n",
     
    293295      /* Areas overlapped */
    294296      printf("area overlapping: \n");
    295       printf("header address       0x%08lx, its memory size 0x%08x\n",
     297      printf("header address       0x%08" PRIxPTR ", its memory size 0x%08zx\n",
    296298             headerAddr, sizeof(buf));
    297       printf("first  image address 0x%08lx, its memory size 0x%08x\n",
     299      printf("first  image address 0x%08" PRIxPTR ", its memory size 0x%08x\n",
    298300             addr1, size1);
    299       printf("second image address 0x%08lx, its memory size 0x%08x\n",
     301      printf("second image address 0x%08" PRIxPTR ", its memory size 0x%08x\n",
    300302             addr2, size2);
    301303
     
    391393  if(verbose)
    392394    {
    393       printf("header address       0x%08lx, its memory size 0x%08x\n",
     395      printf("header address       0x%08" PRIxPTR ", its memory size 0x%08zx\n",
    394396             headerAddr, sizeof(buf));
    395       printf("first  image address 0x%08lx, its memory size 0x%08x\n",
     397      printf("first  image address 0x%08" PRIxPTR ", its memory size 0x%08x\n",
    396398             addr1, size1);
    397       printf("second image address 0x%08lx, its memory size 0x%08x\n",
     399      printf("second image address 0x%08" PRIxPTR ", its memory size 0x%08x\n",
    398400             addr2, size2);
    399401    }
Note: See TracChangeset for help on using the changeset viewer.