summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/block08/bdbuf_tests.h
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2016-05-23 15:29:49 +1000
committerChris Johns <chrisj@rtems.org>2016-05-25 15:47:34 +1000
commitaddf1aa8689d64f7aaf0b97185c29265aa713730 (patch)
treefad7b2c6581797197d1d4a4ca5e92fafe7fbd253 /testsuites/libtests/block08/bdbuf_tests.h
parenttestsuite: Fix printk formating warning. (diff)
downloadrtems-addf1aa8689d64f7aaf0b97185c29265aa713730.tar.bz2
testsuite: Fix printk format warnings.
Diffstat (limited to 'testsuites/libtests/block08/bdbuf_tests.h')
-rw-r--r--testsuites/libtests/block08/bdbuf_tests.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/testsuites/libtests/block08/bdbuf_tests.h b/testsuites/libtests/block08/bdbuf_tests.h
index 3f92c5def9..1a0703ffc9 100644
--- a/testsuites/libtests/block08/bdbuf_tests.h
+++ b/testsuites/libtests/block08/bdbuf_tests.h
@@ -12,6 +12,7 @@
#ifndef BDBUF_TESTS_H
#define BDBUF_TESTS_H
+#include <inttypes.h>
#include <stdio.h>
#include <string.h>
#include <errno.h>
@@ -74,8 +75,8 @@ enum bdbuf_test_msg_type {
* Message used in communication between test disk driver
* and main test task.
* All R/W requests obtained by driver (from bdbuf library)
- * are directed to main test task. Then main test task
- * sends a reply after which test disk driver notifies
+ * are directed to main test task. Then main test task
+ * sends a reply after which test disk driver notifies
* bdbuf library about operation complete event.
*/
typedef struct bdbuf_test_msg {
@@ -111,7 +112,7 @@ typedef struct test_ctx {
* disk device driver.
*/
Objects_Id test_qid;
-
+
/**
* Object ID for disk driver queue.
* Test task will send messages to this queue in reply
@@ -122,7 +123,7 @@ typedef struct test_ctx {
/** Test name */
const char *test_name;
- /**
+ /**
* Semaphore used for synchronization between test thread
* and main test task.
* Main test task blocks on one of these semaphores and an auxiliary thread
@@ -210,7 +211,7 @@ extern bool good_test_result;
} while (0)
/**
- * Start thread number @p t_num_ with @p func_ function
+ * Start thread number @p t_num_ with @p func_ function
* as an entry point of the thread.
*
* @param t_num_ thread number.
@@ -255,20 +256,20 @@ extern bool good_test_result;
} while (0)
#define WAIT_DRV_MSG_WR(msg_) \
- do { \
- WAIT_DRV_MSG(msg_); \
- if ((msg_)->val.driver_req.req != RTEMS_BLKIO_REQUEST || \
- (msg_)->val.driver_req.dd != test_dd || \
- ((rtems_blkdev_request *) \
- ((msg_)->val.driver_req.argp))->req != \
- RTEMS_BLKDEV_REQ_WRITE) \
- { \
- printk("Unexpected message received by disk driver: " \
- "req - 0x%x (0x%x), dev - %d (%d)\n", \
- (msg_)->val.driver_req.req, RTEMS_BLKIO_REQUEST, \
- (msg_)->val.driver_req.dd, test_dd); \
- return; \
- } \
+ do { \
+ WAIT_DRV_MSG(msg_); \
+ if ((msg_)->val.driver_req.req != RTEMS_BLKIO_REQUEST || \
+ (msg_)->val.driver_req.dd != test_dd || \
+ ((rtems_blkdev_request *) \
+ ((msg_)->val.driver_req.argp))->req != \
+ RTEMS_BLKDEV_REQ_WRITE) \
+ { \
+ printk("Unexpected message received by disk driver: " \
+ "req - 0x%" PRIx32 " (0x%" PRIx32 "), dev - %p (%p)\n", \
+ (msg_)->val.driver_req.req, RTEMS_BLKIO_REQUEST, \
+ (msg_)->val.driver_req.dd, test_dd); \
+ return; \
+ } \
} while (0)
#define CHECK_NO_DRV_MSG() \
@@ -298,7 +299,7 @@ extern bdbuf_test_msg test_drv_msg;
* ioctl() function.
* @param ret_errno_ errno value to set to errno variable.
* @param res_status_ In case return value from the ioctl()
- * function is equal to 0, this value
+ * function is equal to 0, this value
* is used as status code in asynchronous
* notification.
* @param res_errno_ In case return value from the ioctl()
@@ -333,7 +334,7 @@ extern bdbuf_test_msg test_drv_msg;
* Block main test task until a thread passes back control
* with CONTINUE_MAIN().
*
- * @param t_num_ thread number from which the main thread
+ * @param t_num_ thread number from which the main thread
* is waiting for a sync.
*/
#define WAIT_THREAD_SYNC(t_num_) \
@@ -457,7 +458,7 @@ extern bdbuf_test_msg test_drv_msg;
} \
} while (0)
-#define TEST_END() \
+#define TEST_STOP() \
do { \
bdbuf_test_end(); \
\
@@ -500,4 +501,3 @@ bdbuf_test_start_aux_task(rtems_name name,
#endif
#endif /* BDBUF_TESTS_H */
-