Changeset d4118467 in rtems


Ignore:
Timestamp:
Jun 17, 2010, 3:16:41 AM (9 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.11, master
Children:
ca400296
Parents:
f544167
Message:

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

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

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    rf544167 rd4118467  
    112010-06-17      Ralf Corsépius <ralf.corsepius@rtems.org>
    22
     3        * libfs/src/rfs/rtems-rfs-buffer.c: Various 64bit fixes.
    34        * libfs/src/rfs/rtems-rfs-shell.c: Various 64bit fixes.
    45
  • cpukit/libfs/src/rfs/rtems-rfs-buffer.c

    rf544167 rd4118467  
    5353
    5454    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))
    55       printf ("%lu ", (rtems_rfs_buffer_block) ((intptr_t)(buffer->user)));
     55      printf ("%" PRIuPTR " ", ((intptr_t) buffer->user));
    5656
    5757    if (((rtems_rfs_buffer_block) ((intptr_t)(buffer->user))) == block)
    5858    {
    5959      if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))
    60         printf (": found block=%lu\n",
    61                 (rtems_rfs_buffer_block) ((intptr_t)(buffer->user)));
     60        printf (": found block=%" PRIuPTR "\n",
     61                ((intptr_t)(buffer->user)));
    6262
    6363      (*count)--;
     
    9696
    9797    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_REQUEST))
    98       printf ("rtems-rfs: buffer-request: handle has buffer: %lu\n",
     98      printf ("rtems-rfs: buffer-request: handle has buffer: %" PRIu32 "\n",
    9999              rtems_rfs_buffer_bnum (handle));
    100100
     
    172172    {
    173173      if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_REQUEST))
    174         printf ("rtems-rfs: buffer-request: block=%lu: bdbuf-%s: %d: %s\n",
     174        printf ("rtems-rfs: buffer-request: block=%" PRIu32 ": bdbuf-%s: %d: %s\n",
    175175                block, read ? "read" : "get", rc, strerror (rc));
    176176      return rc;
     
    189189 
    190190  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_REQUEST))
    191     printf ("rtems-rfs: buffer-request: block=%lu bdbuf-%s=%lu refs=%d\n",
     191    printf ("rtems-rfs: buffer-request: block=%" PRIu32 " bdbuf-%s=%" PRIu32 " refs=%d\n",
    192192            block, read ? "read" : "get", handle->buffer->block,
    193193            handle->buffer->references);
     
    205205  {
    206206    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_RELEASE))
    207       printf ("rtems-rfs: buffer-release: block=%lu %s refs=%d %s\n",
     207      printf ("rtems-rfs: buffer-release: block=%" PRIu32 " %s refs=%d %s\n",
    208208              rtems_rfs_buffer_bnum (handle),
    209209              rtems_rfs_buffer_dirty (handle) ? "(dirty)" : "",
     
    243243       
    244244          if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_RELEASE))
    245             printf ("rtems-rfs: buffer-release: local cache overflow:" \
    246                     " %lu\n", fs->release_count + fs->release_modified_count);
     245            printf ("rtems-rfs: buffer-release: local cache overflow:"
     246                    " %" PRIu32 "\n", fs->release_count + fs->release_modified_count);
    247247       
    248248          if (fs->release_count > fs->release_modified_count)
     
    331331
    332332  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SYNC))
    333     printf ("rtems-rfs: buffer-open: blks=%ld, blk-size=%ld\n",
     333    printf ("rtems-rfs: buffer-open: blks=%" PRId32 ", blk-size=%" PRId32 "\n",
    334334            rtems_rfs_fs_media_blocks (fs),
    335335            rtems_rfs_fs_media_block_size (fs));
     
    443443
    444444  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))
    445     printf ("rtems-rfs: release-chain: count=%lu\n", *count);
     445    printf ("rtems-rfs: release-chain: count=%" PRIu32 "\n", *count);
    446446
    447447  while (!rtems_chain_is_empty (chain))
     
    466466
    467467  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_RELEASE))
    468     printf ("rtems-rfs: buffers-release: active:%lu " \
    469             "release:%lu release-modified:%lu\n",
     468    printf ("rtems-rfs: buffers-release: active:%" PRIu32 " "
     469            "release:%" PRIu32 " release-modified:%" PRIu32 "\n",
    470470            fs->buffers_count, fs->release_count, fs->release_modified_count);
    471471
Note: See TracChangeset for help on using the changeset viewer.