Changeset bef4dbf6 in rtems


Ignore:
Timestamp:
Jun 15, 2010, 5:42:28 AM (9 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.11, master
Children:
d537b1d
Parents:
3f7fc1d
Message:

2010-06-15 Ralf Corsépius <ralf.corsepius@…>

  • libmisc/shell/print-ls.c, libmisc/shell/main_msdosfmt.c: Include <inttypes.h>. Misc. 64bit-compatibility fixes.
Location:
cpukit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r3f7fc1d rbef4dbf6  
     12010-06-15      Ralf Corsépius <ralf.corsepius@rtems.org>
     2
     3        * libmisc/shell/print-ls.c, libmisc/shell/main_msdosfmt.c:
     4        Include <inttypes.h>.
     5        Misc. 64bit-compatibility fixes.
     6
    172010-06-14      Ralf Corsépius <ralf.corsepius@rtems.org>
    28
  • cpukit/libmisc/shell/main_msdosfmt.c

    r3f7fc1d rbef4dbf6  
    1515#include <string.h>
    1616#include <errno.h>
     17#include <inttypes.h>
    1718
    1819#include <rtems.h>
     
    145146    printf (" %-20s: %s\n", "OEMName", "RTEMS");
    146147    printf (" %-20s: %s\n", "VolLabel", "RTEMSDisk");
    147     printf (" %-20s: %lu\n", "sectors per cluster", rqdata.sectors_per_cluster);
    148     printf (" %-20s: %lu\n", "fats", rqdata.fat_num);
    149     printf (" %-20s: %lu\n", "files per root dir", rqdata.files_per_root_dir);
     148    printf (" %-20s: %" PRIu32 "\n", "sectors per cluster", rqdata.sectors_per_cluster);
     149    printf (" %-20s: %" PRIu32 "\n", "fats", rqdata.fat_num);
     150    printf (" %-20s: %" PRIu32 "\n", "files per root dir", rqdata.files_per_root_dir);
    150151    printf (" %-20s: %i\n", "fat type", rqdata.fattype);
    151152    printf (" %-20s: %d\n", "media", rqdata.media);
    152153    printf (" %-20s: %d\n", "quick_format", rqdata.quick_format);
    153     printf (" %-20s: %lu\n", "cluster align", rqdata.cluster_align);
     154    printf (" %-20s: %" PRIu32 "\n", "cluster align", rqdata.cluster_align);
    154155  }
    155156
  • cpukit/libmisc/shell/print-ls.c

    r3f7fc1d rbef4dbf6  
    4848#endif
    4949
     50#include <inttypes.h>
     51
    5052#include <rtems.h>
    5153#include <rtems/libio.h>
     
    148150                        (void)printf("%-*s ", dp->s_flags, np->flags);
    149151                if (S_ISCHR(sp->st_mode) || S_ISBLK(sp->st_mode))
    150                         (void)printf("%*lu, %*lu ",
     152                        (void)printf("%*"PRIu32", %*"PRIu32" ",
    151153                            dp->s_major, major(sp->st_rdev), dp->s_minor,
    152154                            minor(sp->st_rdev));
Note: See TracChangeset for help on using the changeset viewer.