From c31a11c59114b8f45d626ccb017538921d245921 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Fri, 16 Jun 2017 21:36:30 -0400 Subject: [PATCH] tests: work_queue: fix code style Signed-off-by: Anas Nashif --- tests/kernel/workq/work_queue/src/main.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/kernel/workq/work_queue/src/main.c b/tests/kernel/workq/work_queue/src/main.c index f00b8b761b0..90ed3079fae 100644 --- a/tests/kernel/workq/work_queue/src/main.c +++ b/tests/kernel/workq/work_queue/src/main.c @@ -11,17 +11,17 @@ #include #include -#define NUM_TEST_ITEMS 6 +#define NUM_TEST_ITEMS 6 /* Each work item takes 100ms */ -#define WORK_ITEM_WAIT 100 +#define WORK_ITEM_WAIT 100 /* * Wait 50ms between work submissions, to ensure co-op and prempt * preempt thread submit alternatively. */ -#define SUBMIT_WAIT 50 +#define SUBMIT_WAIT 50 -#define STACK_SIZE 1024 +#define STACK_SIZE 1024 struct test_item { int key; @@ -101,7 +101,7 @@ static int check_results(int num_tests) for (i = 0; i < num_tests; i++) { if (results[i] != i + 1) { TC_ERROR("*** got result %d in position %d" - " (expected %d)\n", + " (expected %d)\n", results[i], i, i + 1); return TC_FAIL; } @@ -203,7 +203,7 @@ static void coop_delayed_work_main(int arg1, int arg2) TC_PRINT(" - Submitting delayed work %d from" " coop thread\n", i + 1); k_delayed_work_submit(&tests[i].work, - (i + 1) * WORK_ITEM_WAIT); + (i + 1) * WORK_ITEM_WAIT); } } @@ -219,7 +219,7 @@ static int test_delayed_submit(void) TC_PRINT(" - Submitting delayed work %d from" " preempt thread\n", i + 1); if (k_delayed_work_submit(&tests[i].work, - (i + 1) * WORK_ITEM_WAIT)) { + (i + 1) * WORK_ITEM_WAIT)) { return TC_FAIL; } }