Changeset c5500f2 in rtems


Ignore:
Timestamp:
Jun 16, 2010, 5:44:37 PM (9 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.11, master
Children:
0d8dad9
Parents:
116e83c4
Message:

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

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

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r116e83c4 rc5500f2  
     12010-06-16      Ralf Corsépius <ralf.corsepius@rtems.org>
     2
     3        * libfs/src/rfs/rtems-rfs-file.c: Various 64bit fixes.
     4
    152010-06-16      Joel Sherrill <joel.sherrill@oarcorp.com>
    26
  • cpukit/libfs/src/rfs/rtems-rfs-file.c

    r116e83c4 rc5500f2  
    2222#endif
    2323
     24#include <inttypes.h>
     25
    2426#include <rtems/rfs/rtems-rfs-block-pos.h>
    2527#include <rtems/rfs/rtems-rfs-file.h>
     
    3840
    3941  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))
    40     printf ("rtems-rfs: file-open: ino=%ld\n", ino);
     42    printf ("rtems-rfs: file-open: ino=%" PRId32 "\n", ino);
    4143           
    4244  *file = NULL;
     
    7274    shared->references++;
    7375    if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))
    74       printf ("rtems-rfs: file-open: ino=%ld shared\n", ino);
     76      printf ("rtems-rfs: file-open: ino=%" PRId32 " shared\n", ino);
    7577  }
    7678  else
     
    128130
    129131    if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))
    130       printf ("rtems-rfs: file-open: ino=%ld share created\n", ino);
     132      printf ("rtems-rfs: file-open: ino=%" PRId32 " share created\n", ino);
    131133  }
    132134
     
    149151 
    150152  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_CLOSE))
    151     printf ("rtems-rfs: file-close: entry: ino=%ld\n",
     153    printf ("rtems-rfs: file-close: entry: ino=%" PRId32 "\n",
    152154            handle->shared->inode.ino);
    153155
     
    173175    {
    174176      if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_CLOSE))
    175         printf ("rtems-rfs: file-close: map close error: ino=%ld: %d: %s\n",
     177        printf ("rtems-rfs: file-close: map close error: ino=%" PRId32 ": %d: %s\n",
    176178                handle->shared->inode.ino, rc, strerror (rc));
    177179      if (rrc == 0)
     
    183185    {
    184186      if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_CLOSE))
    185         printf ("rtems-rfs: file-close: inode close error: ino=%ld: %d: %s\n",
     187        printf ("rtems-rfs: file-close: inode close error: ino=%" PRId32 ": %d: %s\n",
    186188                handle->shared->inode.ino, rc, strerror (rc));
    187189      if (rrc == 0)
     
    216218 
    217219  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))
    218     printf ("rtems-rfs: file-io: start: %s pos=%lu:%lu\n",
     220    printf ("rtems-rfs: file-io: start: %s pos=%" PRIu32 ":%" PRIu32 "\n",
    219221            read ? "read" : "write",  handle->bpos.bno, handle->bpos.boff);
    220222 
     
    270272   
    271273    if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))
    272       printf ("rtems-rfs: file-io: start: block=%lu request-read=%s\n",
     274      printf ("rtems-rfs: file-io: start: block=%" PRIu32 " request-read=%s\n",
    273275              block, request_read ? "yes" : "no");
    274276   
     
    361363 
    362364  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))
    363     printf ("rtems-rfs: file-io:   end: pos=%lu:%lu %c %c %c\n",
     365    printf ("rtems-rfs: file-io:   end: pos=%" PRIu32 ":%" PRIu32 " %c %c %c\n",
    364366            handle->bpos.bno, handle->bpos.boff,
    365367            atime ? 'A' : '-', mtime ? 'M' : '-', length ? 'L' : '-');
     
    400402{
    401403  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))
    402     printf ("rtems-rfs: file-seek: new=%Lu\n", pos);
     404    printf ("rtems-rfs: file-seek: new=%" PRIu64 "\n", pos);
    403405 
    404406  /*
     
    430432
    431433  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))
    432     printf ("rtems-rfs: file-set-size: size=%Lu\n", new_size);
     434    printf ("rtems-rfs: file-set-size: size=%" PRIu64 "\n", new_size);
    433435
    434436  /*
Note: See TracChangeset for help on using the changeset viewer.