diff options
author | Yonattan Louise <yonattan.a.louise.mendoza@intel.com> | 2015-05-14 16:30:48 -0500 |
---|---|---|
committer | Anas Nashif <anas.nashif@intel.com> | 2016-02-05 20:13:59 -0500 |
commit | dbada63eee8516d35d11c1543788e742b70172e1 (patch) | |
tree | 6f6556441918eecadd2495e4e2944138422accf5 /samples/microkernel/test/test_sema/src/main.c | |
parent | d133f9661d670ca5340dd032ba3630f44d995af9 (diff) |
Fix coding style issues.
Some checkpatch issues were solved by scripts leaving other problems
such as alignment and indentation issues. In order to comply with the
defined coding style the following fixes were made:
- Fixed the function declaration moving the parameters' comments above
the function in accordance to the doxygen format.
- Fixed functions' opening and closing brackets. These brackets should
not be indented.
- Fixed the 'if', 'for' and 'while' statements adding the brackets
around the sentence.
- Fixed comments' alignment.
- Fixed indentation.
The work was done manually and submitted as one commit. I didn't
separate these changes in different commits because they were fixed all
at once. Basically, all errors were fixed in every file at once.
Change-Id: Icc94a10bfd2cff82007ce60df23b2ccd4c30268d
Signed-off-by: Yonattan Louise <yonattan.a.louise.mendoza@intel.com>
Diffstat (limited to 'samples/microkernel/test/test_sema/src/main.c')
-rw-r--r-- | samples/microkernel/test/test_sema/src/main.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/samples/microkernel/test/test_sema/src/main.c b/samples/microkernel/test/test_sema/src/main.c index 7b893af9d..49b96aa6f 100644 --- a/samples/microkernel/test/test_sema/src/main.c +++ b/samples/microkernel/test/test_sema/src/main.c @@ -249,22 +249,22 @@ void MonitorTaskEntry(void) PRINT_DATA("Starting semaphore tests\n"); PRINT_LINE; - /* - * the various test tasks start executing automatically; - * wait for all tasks to complete or a failure to occur, - * then issue the appropriate test case summary message - */ + /* + * the various test tasks start executing automatically; + * wait for all tasks to complete or a failure to occur, + * then issue the appropriate test case summary message + */ for (tasksDone = 0; tasksDone < NUM_TEST_TASKS; tasksDone++) { - result = task_sem_group_take_wait_timeout(resultSems, SECONDS(60)); - if (result != resultSems[TC_PASS]) { - if (result != resultSems[TC_FAIL]) { - TC_ERROR("Monitor task timed out\n"); + result = task_sem_group_take_wait_timeout(resultSems, SECONDS(60)); + if (result != resultSems[TC_PASS]) { + if (result != resultSems[TC_FAIL]) { + TC_ERROR("Monitor task timed out\n"); + } + TC_END_RESULT(TC_FAIL); + TC_END_REPORT(TC_FAIL); + return; } - TC_END_RESULT(TC_FAIL); - TC_END_REPORT(TC_FAIL); - return; - } } TC_END_RESULT(TC_PASS); |