diff options
author | Chris Johns <chrisj@rtems.org> | 2017-10-19 16:39:16 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2017-10-23 16:25:45 +1100 |
commit | 98c6d501452f02264ff148a1b8479e420c81562d (patch) | |
tree | 8c6cd90ccd1df98f782396d94d6acdbfe5d042cb /testsuites/libtests/block08/test_disk.c | |
parent | posix: Fix POSIX disabled build (diff) | |
download | rtems-98c6d501452f02264ff148a1b8479e420c81562d.tar.bz2 |
testsuite: Use printk for all test output where possible.
- Remove the printf support leaving the direct printk support configured
with TESTS_USE_PRINTK and all other output goes via a buffered vsniprintf
call to printk.
- Control the test's single init for functions and global data with
TEST_INIT and not CONFIGURE_INIT. They are now separate.
Updates #3170.
Diffstat (limited to 'testsuites/libtests/block08/test_disk.c')
-rw-r--r-- | testsuites/libtests/block08/test_disk.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/testsuites/libtests/block08/test_disk.c b/testsuites/libtests/block08/test_disk.c index 9a4c5bf2b1..aa33803b23 100644 --- a/testsuites/libtests/block08/test_disk.c +++ b/testsuites/libtests/block08/test_disk.c @@ -46,19 +46,19 @@ test_disk_ioctl(rtems_disk_device *dd, uint32_t req, void *argp) r = argp; - printk("DISK_DRV: %s ", + printf("DISK_DRV: %s ", r->req == RTEMS_BLKDEV_REQ_READ ? "R" : r->req == RTEMS_BLKDEV_REQ_WRITE ? "W" : "?"); for (i = 0, sg = r->bufs; i < r->bufnum; i++, sg++) { - printk("[%" PRIu32 "] ", sg->block); + printf("[%" PRIu32 "] ", sg->block); } - printk("\n"); + printf("\n"); break; } default: - printk("%s() Unexpected request comes %" PRIu32 "\n", + printf("%s() Unexpected request comes %" PRIu32 "\n", __FUNCTION__, req); return -1; } @@ -135,7 +135,7 @@ test_disk_initialize( rc = bdbuf_test_create_drv_rx_queue(&drvq_id); if (rc != RTEMS_SUCCESSFUL) { - printk("%s() Failed to create Msg Queue for RX: %u\n", + printf("%s() Failed to create Msg Queue for RX: %u\n", __FUNCTION__, rc); return rc; } @@ -148,6 +148,6 @@ test_disk_initialize( return rc; } - printk("TEST DISK - OK\n"); + printf("TEST DISK - OK\n"); return RTEMS_SUCCESSFUL; } |