Changeset b439daa in rtems


Ignore:
Timestamp:
Jun 17, 2010, 3:48:39 AM (9 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10
Children:
5c8fa6a0
Parents:
23d3d89
Message:

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

  • libfs/src/rfs/rtems-rfs-format.c: Various 64bit fixes.
Location:
cpukit
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r23d3d89 rb439daa  
    112010-06-17      Ralf Corsépius <ralf.corsepius@rtems.org>
    22
     3        * libfs/src/rfs/rtems-rfs-rtems-dir.c: Various 64bit fixes.
    34        * libfs/src/rfs/rtems-rfs-format.c: Various 64bit fixes.
    45        * libfs/src/rfs/rtems-rfs-file-system.c: Various 64bit fixes.
  • cpukit/libfs/src/rfs/rtems-rfs-format.c

    r23d3d89 rb439daa  
    2424#include <stdlib.h>
    2525#include <stdio.h>
     26#include <inttypes.h>
    2627
    2728#include <rtems/rfs/rtems-rfs-data.h>
     
    120121  if ((fs->block_size % rtems_rfs_fs_media_block_size (fs)) != 0)
    121122  {
    122     printf ("block size (%zd) is not a multiple of media block size (%ld)\n",
     123    printf ("block size (%zd) is not a multiple of media block size (%" PRId32 ")\n",
    123124            fs->block_size, rtems_rfs_fs_media_block_size (fs));
    124125    return false;
     
    219220
    220221  if (verbose)
    221     printf ("\rrtems-rfs: format: group %3d: base = %ld, size = %zd",
     222    printf ("\rrtems-rfs: format: group %3d: base = %" PRId32 ", size = %zd",
    222223            group, group_base, group_size);
    223224
     
    365366      {
    366367        rtems_rfs_buffer_handle_close (fs, &handle);
    367         printf ("\nrtems-rfs: write-group: group %3d: block %ld request failed: %d: %s\n",
     368        printf ("\nrtems-rfs: write-group: group %3d: block %" PRId32 " request failed: %d: %s\n",
    368369                group, group_base + b + RTEMS_RFS_GROUP_INODE_BLOCK,
    369370                rc, strerror (rc));
     
    485486  if (ino != RTEMS_RFS_ROOT_INO)
    486487  {
    487     printf ("rtems-rfs: format: allocated inode not root ino: %ld\n", ino);
     488    printf ("rtems-rfs: format: allocated inode not root ino: %" PRId32 "\n", ino);
    488489    rtems_rfs_fs_close (fs);
    489490    return rc;
     
    565566  if (rtems_rfs_fs_media_block_size (&fs) == 0)
    566567  {
    567     printf ("rtems-rfs: media block is invalid: %lu\n",
     568    printf ("rtems-rfs: media block is invalid: %" PRIu32 "\n",
    568569            rtems_rfs_fs_media_block_size (&fs));
    569570    return -1;
     
    578579  if (config->verbose)
    579580  {
    580     printf ("rtems-rfs: format: media size = %llu\n",
     581    printf ("rtems-rfs: format: media size = %" PRIu64 "\n",
    581582            rtems_rfs_fs_media_size (&fs));
    582     printf ("rtems-rfs: format: media blocks = %ld\n",
     583    printf ("rtems-rfs: format: media blocks = %" PRIu32 "\n",
    583584            rtems_rfs_fs_media_blocks (&fs));
    584     printf ("rtems-rfs: format: media block size = %lu\n",
     585    printf ("rtems-rfs: format: media block size = %" PRIu32 "\n",
    585586            rtems_rfs_fs_media_block_size (&fs));
    586     printf ("rtems-rfs: format: size = %llu\n",
     587    printf ("rtems-rfs: format: size = %" PRIu64 "\n",
    587588            rtems_rfs_fs_size (&fs));
    588589    printf ("rtems-rfs: format: blocks = %zu\n",
  • cpukit/libfs/src/rfs/rtems-rfs-rtems-dir.c

    r23d3d89 rb439daa  
    1919#include "config.h"
    2020#endif
     21
     22#include <inttypes.h>
    2123
    2224#include <sys/types.h>
     
    202204
    203205  if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_DIR_RMNOD))
    204     printf ("rtems-rfs: dir-rmnod: parent:%ld doff:%lu, ino:%ld\n",
     206    printf ("rtems-rfs: dir-rmnod: parent:%" PRId32 " doff:%" PRIu32 ", ino:%" PRId32 "\n",
    205207            parent, doff, ino);
    206208
Note: See TracChangeset for help on using the changeset viewer.