summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel@rtems.org>2017-04-25 20:14:28 -0500
committerJoel Sherrill <joel@rtems.org>2017-04-25 20:14:28 -0500
commit9e6ef361cf347c6610d24ecabe8943cb01da6e9a (patch)
tree095a9badd5fb570564ef2e3a02a72f1b276c6744
parentscore/cpu/or1k/rtems/score/cpu.h: Fix printf() format warning (diff)
downloadrtems-9e6ef361cf347c6610d24ecabe8943cb01da6e9a.tar.bz2
rtems/inttypes.h, block08: Add and use PRIdrtems_blkdev_bnum
-rw-r--r--cpukit/include/rtems/inttypes.h7
-rw-r--r--testsuites/libtests/block08/bdbuf_tests.c6
2 files changed, 10 insertions, 3 deletions
diff --git a/cpukit/include/rtems/inttypes.h b/cpukit/include/rtems/inttypes.h
index 0d30635451..a0cd2eb476 100644
--- a/cpukit/include/rtems/inttypes.h
+++ b/cpukit/include/rtems/inttypes.h
@@ -137,8 +137,11 @@ extern "C" {
/* ioctl_command_t */
#define PRIdioctl_command_t PRId32
-/* rtems_vector_number */
-#define PRIdrtems_vector_number PRId32
+/* rtems_blkdev_bnum */
+#define PRIdrtems_blkdev_bnum PRId32
+
+/* rtems_blkdev_bnum */
+#define PRIdrtems_blkdev_bnum PRId32
/**@}*/
diff --git a/testsuites/libtests/block08/bdbuf_tests.c b/testsuites/libtests/block08/bdbuf_tests.c
index 54f33ea5d2..8ad4d259ec 100644
--- a/testsuites/libtests/block08/bdbuf_tests.c
+++ b/testsuites/libtests/block08/bdbuf_tests.c
@@ -140,7 +140,11 @@ run_bdbuf_tests()
test_dev = -1;
while ((disk = rtems_disk_next(dev)) != NULL)
{
- printk("DEV: %s [%lu]\n", disk->name, disk->size);
+ printk(
+ "DEV: %s [%" PRIdrtems_blkdev_bnum "]\n",
+ disk->name,
+ disk->size
+ );
dev = disk->dev;
if (strcmp(disk->name, TEST_DISK_NAME) == 0)
test_dev = dev;