Changeset 53cd606 in rtems


Ignore:
Timestamp:
Jan 30, 2007, 7:55:58 AM (13 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
1cf2581b
Parents:
a9a3e75
Message:

2007-01-30 Ralf Corsépius <ralf.corsepius@…>

  • libblock/src/show_bdbuf.c: Use inttypes.h macros.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    ra9a3e75 r53cd606  
     12007-01-30      Ralf Corsépius <ralf.corsepius@rtems.org>
     2
     3        * libblock/src/show_bdbuf.c: Use inttypes.h macros.
     4
    152007-01-29      Ralf Corsépius <ralf.corsepius@rtems.org>
    26
  • cpukit/libblock/src/show_bdbuf.c

    ra9a3e75 r53cd606  
    4141#include <stdio.h>
    4242#include <rtems/libio.h>
    43 
     43#include <inttypes.h>
    4444
    4545typedef struct {
     
    415415  if (rc == RTEMS_SUCCESSFUL) {
    416416    printf("------------------------------------------------------------------------------\n");
    417     printf(" pool #%03d: blksize=%5u nblks=%5u buf_mem=0x%08x bdbuf_mem=0x%08x\n",
     417    printf(" pool #%03d: blksize=%5u nblks=%5u buf_mem=0x%08" PRIxPTR " bdbuf_mem=0x%08" PRIxPTR "\n",
    418418           pool_idx,
    419419           pool_ptr->blksize,
    420420           pool_ptr->nblks,
    421            pool_ptr->mallocd_bufs,
    422            pool_ptr->bdbufs);
     421           (intptr_t) pool_ptr->mallocd_bufs,
     422           (intptr_t) pool_ptr->bdbufs);
    423423    printf("------------------------------------------------------------------------------\n");
    424424  }
     
    563563    thread_name = the_thread->Object.name;
    564564    thread_name_nonstring = (uint32_t)thread_name;
    565     printf("%20s %3d (0x%08x) %c%c%c%c\n",
     565    printf("%20s %3d (0x%08" PRIx32 ") %c%c%c%c\n",
    566566           ((thread_cnt == 1) ? "Threads waiting:" : ""),
    567567           thread_cnt,thread_id,
    568            (thread_name_nonstring >> 24) & 0xff,
    569            (thread_name_nonstring >> 16) & 0xff,
    570            (thread_name_nonstring >>  8) & 0xff,
    571            (thread_name_nonstring >>  0) & 0xff);
     568           (char)((thread_name_nonstring >> 24) & 0xff),
     569           (char)((thread_name_nonstring >> 16) & 0xff),
     570           (char)((thread_name_nonstring >>  8) & 0xff),
     571           (char)((thread_name_nonstring >>  0) & 0xff));
    572572
    573573    the_chain_node = the_chain_node->next;
     
    653653    }
    654654    else {
    655       printf("%3u,%2u ",
     655      printf("%3" PRIu32 "%2" PRIu32,
    656656             ((bdbuf_info->dev == -1)
    657657              ? 0 : rtems_filesystem_dev_major_t(bdbuf_info->dev)),
     
    671671    }
    672672    else {
    673       printf("%6u ",bdbuf_info->blknum);
     673      printf("%6" PRIu32,bdbuf_info->blknum);
    674674    }
    675675  }
Note: See TracChangeset for help on using the changeset viewer.