[rtems commit] rtems/inttypes.h, block08: Add and use PRIdrtems_blkdev_bnum

Joel Sherrill joel at rtems.org
Tue Apr 25 23:14:15 UTC 2017


Module:    rtems
Branch:    master
Commit:    9e6ef361cf347c6610d24ecabe8943cb01da6e9a
Changeset: http://git.rtems.org/rtems/commit/?id=9e6ef361cf347c6610d24ecabe8943cb01da6e9a

Author:    Joel Sherrill <joel at rtems.org>
Date:      Tue Apr 25 20:14:28 2017 -0500

rtems/inttypes.h, block08: Add and use PRIdrtems_blkdev_bnum

---

 cpukit/include/rtems/inttypes.h           | 7 +++++--
 testsuites/libtests/block08/bdbuf_tests.c | 6 +++++-
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/cpukit/include/rtems/inttypes.h b/cpukit/include/rtems/inttypes.h
index 0d30635..a0cd2eb 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 54f33ea..8ad4d25 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;



More information about the vc mailing list