Changeset 53cd606 in rtems for cpukit/libblock
- Timestamp:
- 01/30/07 07:55:58 (17 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 1cf2581b
- Parents:
- a9a3e75
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/libblock/src/show_bdbuf.c
ra9a3e75 r53cd606 41 41 #include <stdio.h> 42 42 #include <rtems/libio.h> 43 43 #include <inttypes.h> 44 44 45 45 typedef struct { … … 415 415 if (rc == RTEMS_SUCCESSFUL) { 416 416 printf("------------------------------------------------------------------------------\n"); 417 printf(" pool #%03d: blksize=%5u nblks=%5u buf_mem=0x%08 x bdbuf_mem=0x%08x\n",417 printf(" pool #%03d: blksize=%5u nblks=%5u buf_mem=0x%08" PRIxPTR " bdbuf_mem=0x%08" PRIxPTR "\n", 418 418 pool_idx, 419 419 pool_ptr->blksize, 420 420 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); 423 423 printf("------------------------------------------------------------------------------\n"); 424 424 } … … 563 563 thread_name = the_thread->Object.name; 564 564 thread_name_nonstring = (uint32_t)thread_name; 565 printf("%20s %3d (0x%08 x) %c%c%c%c\n",565 printf("%20s %3d (0x%08" PRIx32 ") %c%c%c%c\n", 566 566 ((thread_cnt == 1) ? "Threads waiting:" : ""), 567 567 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)); 572 572 573 573 the_chain_node = the_chain_node->next; … … 653 653 } 654 654 else { 655 printf("%3 u,%2u ",655 printf("%3" PRIu32 "%2" PRIu32, 656 656 ((bdbuf_info->dev == -1) 657 657 ? 0 : rtems_filesystem_dev_major_t(bdbuf_info->dev)), … … 671 671 } 672 672 else { 673 printf("%6 u ",bdbuf_info->blknum);673 printf("%6" PRIu32,bdbuf_info->blknum); 674 674 } 675 675 }
Note: See TracChangeset
for help on using the changeset viewer.