summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2017-10-23 09:57:52 +1100
committerChris Johns <chrisj@rtems.org>2017-10-23 16:25:45 +1100
commit36d974ba4ec8d60f563f868fbd04e9ee61c239c7 (patch)
treeadf26a0fca6b3787ab29bf0eecd0e6827bd1198b /testsuites
parenttestsuite: Use printk for all test output where possible. (diff)
downloadrtems-36d974ba4ec8d60f563f868fbd04e9ee61c239c7.tar.bz2
testsuite: Remove warnings.
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/libtests/block06/init.c35
1 files changed, 18 insertions, 17 deletions
diff --git a/testsuites/libtests/block06/init.c b/testsuites/libtests/block06/init.c
index e1544118f5..ea4bc4df68 100644
--- a/testsuites/libtests/block06/init.c
+++ b/testsuites/libtests/block06/init.c
@@ -199,7 +199,7 @@ bdbuf_wait (const char* who, unsigned long timeout)
}
else if ((out & RTEMS_EVENT_0) == 0)
{
- printf ("%s: wait: received wrong event: %08x", who, out);
+ printf ("%s: wait: received wrong event: %08" PRIxrtems_event_set, who, out);
}
return sc;
}
@@ -210,7 +210,7 @@ bdbuf_wait (const char* who, unsigned long timeout)
static bool
bdbuf_send_wait_event (const char* task, const char* msg, rtems_id id)
{
- printf ("%s: %s: %08x: ", task, msg, id);
+ printf ("%s: %s: %08" PRIxrtems_id ": ", task, msg, id);
return bdbuf_test_print_sc (rtems_event_send (id, RTEMS_EVENT_0), true);
}
@@ -233,7 +233,7 @@ bdbuf_watch (unsigned long timeout)
}
else if ((out & RTEMS_EVENT_1) == 0)
{
- printf ("watch: received wrong event: %08x", out);
+ printf ("watch: received wrong event: %08" PRIxrtems_event_set, out);
}
return sc;
}
@@ -244,7 +244,7 @@ bdbuf_watch (unsigned long timeout)
static bool
bdbuf_send_watch_event (const char* task, const char* msg, rtems_id id)
{
- printf ("%s: %s: %08x: ", task, msg, id);
+ printf ("%s: %s: %08" PRIxrtems_id ": ", task, msg, id);
return bdbuf_test_print_sc (rtems_event_send (id, RTEMS_EVENT_1), true);
}
@@ -397,7 +397,7 @@ bdbuf_disk_ioctl_process (bdbuf_disk* bdd, rtems_blkdev_request* req)
case BDBUF_DISK_WAIT:
if (bdd->waiting)
- printf ("disk ioctl: bad waiter: %s:%08x\n",
+ printf ("disk ioctl: bad waiter: %s:%08" PRIxrtems_id "\n",
bdd->waiting_name, bdd->waiting);
bdd->waiting_name = "bdd";
@@ -415,18 +415,19 @@ bdbuf_disk_ioctl_process (bdbuf_disk* bdd, rtems_blkdev_request* req)
break;
case BDBUF_DISK_SLEEP:
- printf ("disk ioctl: sleeping: %d msecs\n",
+ printf ("disk ioctl: sleeping: %" PRId32 " msecs\n",
bdd->driver_sleep);
result = bdbuf_sleep (bdd->driver_sleep);
break;
case BDBUF_DISK_BLOCKS_INORDER:
- printf ("disk ioctl: multi-block order check: count = %d\n",
- req->bufnum);
+ printf ("disk ioctl: multi-block order check: count = %" PRId32 "\n",
+ req->bufnum);
for (b = 0; b < (req->bufnum - 1); b++)
if (req->bufs[b].block >= req->bufs[b + 1].block)
- printf ("disk ioctl: out of order: index:%d (%d >= %d\n",
- b, req->bufs[b].block, req->bufs[b + 1].block);
+ printf ("disk ioctl: out of order: index:%d "\
+ "(%" PRIdrtems_blkdev_bnum " >= %" PRIdrtems_blkdev_bnum "\n",
+ b, req->bufs[b].block, req->bufs[b + 1].block);
break;
default:
@@ -637,7 +638,7 @@ bdbuf_tests_create_task (bdbuf_task_control* tc,
{
rtems_status_code sc;
- printf ("creating task: %s: priority: %d: ",
+ printf ("creating task: %s: priority: %" PRIdrtems_task_priority ": ",
tc->name, priority);
sc = rtems_task_create (rtems_build_name (tc->name[0], tc->name[1],
@@ -1064,8 +1065,8 @@ bdbuf_tests_task_0_test_7 (bdbuf_task_control* tc)
if (passed)
{
- printf ("%s: rtems_bdbuf_syncdev[%d:%d]: ",
- tc->name, i,
+ printf ("%s: rtems_bdbuf_syncdev[%" PRIuLEAST32 ":%" PRIuLEAST32 "]: ",
+ tc->name,
tc->major,
tc->minor);
passed = bdbuf_test_print_sc (rtems_bdbuf_syncdev (tc->dd), true);
@@ -1146,13 +1147,13 @@ bdbuf_tests_task_0_test_8 (bdbuf_task_control* tc)
*/
bdbuf_set_disk_driver_action (tc, BDBUF_DISK_BLOCKS_INORDER);
- printf ("%s: rtems_bdbuf_syncdev[%d:%d]: checking order\n",
- tc->name, i,
+ printf ("%s: rtems_bdbuf_syncdev[%" PRIuLEAST32 ":%" PRIiLEAST32 "]: checking order\n",
+ tc->name,
tc->major,
tc->minor);
sc = rtems_bdbuf_syncdev (tc->dd);
- printf ("%s: rtems_bdbuf_syncdev[%d:%d]: ",
- tc->name, i,
+ printf ("%s: rtems_bdbuf_syncdev[%" PRIuLEAST32 ":%" PRIuLEAST32 "]: ",
+ tc->name,
tc->major,
tc->minor);
passed = bdbuf_test_print_sc (sc, true);