mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
2007-01-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* libblock/src/show_bdbuf.c: Use inttypes.h macros.
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2007-01-30 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
|
* libblock/src/show_bdbuf.c: Use inttypes.h macros.
|
||||||
|
|
||||||
2007-01-29 Ralf Corsépius <ralf.corsepius@rtems.org>
|
2007-01-29 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
* libmisc/mw-fb/mw_fb.h: Eliminate __u32, __u16.
|
* libmisc/mw-fb/mw_fb.h: Eliminate __u32, __u16.
|
||||||
|
|||||||
@@ -40,7 +40,7 @@
|
|||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <rtems/libio.h>
|
#include <rtems/libio.h>
|
||||||
|
#include <inttypes.h>
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
boolean bdbuf_modified;
|
boolean bdbuf_modified;
|
||||||
@@ -414,12 +414,12 @@ rtems_status_code rtems_bdbuf_show_pool_header
|
|||||||
|
|
||||||
if (rc == RTEMS_SUCCESSFUL) {
|
if (rc == RTEMS_SUCCESSFUL) {
|
||||||
printf("------------------------------------------------------------------------------\n");
|
printf("------------------------------------------------------------------------------\n");
|
||||||
printf(" pool #%03d: blksize=%5u nblks=%5u buf_mem=0x%08x bdbuf_mem=0x%08x\n",
|
printf(" pool #%03d: blksize=%5u nblks=%5u buf_mem=0x%08" PRIxPTR " bdbuf_mem=0x%08" PRIxPTR "\n",
|
||||||
pool_idx,
|
pool_idx,
|
||||||
pool_ptr->blksize,
|
pool_ptr->blksize,
|
||||||
pool_ptr->nblks,
|
pool_ptr->nblks,
|
||||||
pool_ptr->mallocd_bufs,
|
(intptr_t) pool_ptr->mallocd_bufs,
|
||||||
pool_ptr->bdbufs);
|
(intptr_t) pool_ptr->bdbufs);
|
||||||
printf("------------------------------------------------------------------------------\n");
|
printf("------------------------------------------------------------------------------\n");
|
||||||
}
|
}
|
||||||
return rc;
|
return rc;
|
||||||
@@ -562,13 +562,13 @@ rtems_status_code rtems_show_bdbuf_print_wait_chain
|
|||||||
thread_id = the_thread->Object.id;
|
thread_id = the_thread->Object.id;
|
||||||
thread_name = the_thread->Object.name;
|
thread_name = the_thread->Object.name;
|
||||||
thread_name_nonstring = (uint32_t)thread_name;
|
thread_name_nonstring = (uint32_t)thread_name;
|
||||||
printf("%20s %3d (0x%08x) %c%c%c%c\n",
|
printf("%20s %3d (0x%08" PRIx32 ") %c%c%c%c\n",
|
||||||
((thread_cnt == 1) ? "Threads waiting:" : ""),
|
((thread_cnt == 1) ? "Threads waiting:" : ""),
|
||||||
thread_cnt,thread_id,
|
thread_cnt,thread_id,
|
||||||
(thread_name_nonstring >> 24) & 0xff,
|
(char)((thread_name_nonstring >> 24) & 0xff),
|
||||||
(thread_name_nonstring >> 16) & 0xff,
|
(char)((thread_name_nonstring >> 16) & 0xff),
|
||||||
(thread_name_nonstring >> 8) & 0xff,
|
(char)((thread_name_nonstring >> 8) & 0xff),
|
||||||
(thread_name_nonstring >> 0) & 0xff);
|
(char)((thread_name_nonstring >> 0) & 0xff));
|
||||||
|
|
||||||
the_chain_node = the_chain_node->next;
|
the_chain_node = the_chain_node->next;
|
||||||
}
|
}
|
||||||
@@ -652,7 +652,7 @@ rtems_status_code rtems_show_bdbuf_print
|
|||||||
printf("DEVICE ");
|
printf("DEVICE ");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
printf("%3u,%2u ",
|
printf("%3" PRIu32 "%2" PRIu32,
|
||||||
((bdbuf_info->dev == -1)
|
((bdbuf_info->dev == -1)
|
||||||
? 0 : rtems_filesystem_dev_major_t(bdbuf_info->dev)),
|
? 0 : rtems_filesystem_dev_major_t(bdbuf_info->dev)),
|
||||||
((bdbuf_info->dev == -1)
|
((bdbuf_info->dev == -1)
|
||||||
@@ -670,7 +670,7 @@ rtems_status_code rtems_show_bdbuf_print
|
|||||||
printf("BLOCK ");
|
printf("BLOCK ");
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
printf("%6u ",bdbuf_info->blknum);
|
printf("%6" PRIu32,bdbuf_info->blknum);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user