summaryrefslogtreecommitdiff
path: root/examples/example2/example2.c
diff options
context:
space:
mode:
authorChristoph Lipka <clipka@de.adit-jv.com>2018-12-20 14:58:19 +0100
committerChristoph Lipka <clipka@de.adit-jv.com>2018-12-21 10:23:41 +0100
commitdca8ab254aa0a687c32009079d85e4d8f960b213 (patch)
treee63b6a552fd9f61873892110a56a89ef354864cd /examples/example2/example2.c
parent0d0c74640c8b792db37cb9f884f89f7561ea551f (diff)
downloadDLT-daemon-dca8ab254aa0a687c32009079d85e4d8f960b213.tar.gz
Code beautification using uncrustify
Signed-off-by: Christoph Lipka <clipka@de.adit-jv.com>
Diffstat (limited to 'examples/example2/example2.c')
-rw-r--r--examples/example2/example2.c27
1 files changed, 13 insertions, 14 deletions
diff --git a/examples/example2/example2.c b/examples/example2/example2.c
index ccd4ff5..445f60a 100644
--- a/examples/example2/example2.c
+++ b/examples/example2/example2.c
@@ -22,7 +22,7 @@
* License MPL-2.0: Mozilla Public License version 2.0 http://mozilla.org/MPL/2.0/.
*
* \file example2.c
-*/
+ */
/*******************************************************************************
@@ -56,22 +56,21 @@ DLT_DECLARE_CONTEXT(con_exa2);
int main()
{
- int num;
+ int num;
- DLT_REGISTER_APP("EXA2","Third Example");
- DLT_REGISTER_CONTEXT(con_exa2,"CON","First context");
+ DLT_REGISTER_APP("EXA2", "Third Example");
+ DLT_REGISTER_CONTEXT(con_exa2, "CON", "First context");
- DLT_NONVERBOSE_MODE();
+ DLT_NONVERBOSE_MODE();
- for(num=0;num<10;num++)
- {
- DLT_LOG_ID(con_exa2,DLT_LOG_INFO,DLT_EXA2_CON_EXA2_ID1,DLT_INT32(12345678),DLT_STRING("Hello world 1!"));
- DLT_LOG_ID(con_exa2,DLT_LOG_ERROR,DLT_EXA2_CON_EXA2_ID2,DLT_INT32(87654321),DLT_STRING("Hello world 2!"));
- DLT_LOG_ID(con_exa2,DLT_LOG_WARN,DLT_EXA2_CON_EXA2_ID3,DLT_INT32(11223344),DLT_STRING("Hello world 3!"));
- usleep(1000);
- }
+ for (num = 0; num < 10; num++) {
+ DLT_LOG_ID(con_exa2, DLT_LOG_INFO, DLT_EXA2_CON_EXA2_ID1, DLT_INT32(12345678), DLT_STRING("Hello world 1!"));
+ DLT_LOG_ID(con_exa2, DLT_LOG_ERROR, DLT_EXA2_CON_EXA2_ID2, DLT_INT32(87654321), DLT_STRING("Hello world 2!"));
+ DLT_LOG_ID(con_exa2, DLT_LOG_WARN, DLT_EXA2_CON_EXA2_ID3, DLT_INT32(11223344), DLT_STRING("Hello world 3!"));
+ usleep(1000);
+ }
- DLT_UNREGISTER_CONTEXT(con_exa2);
+ DLT_UNREGISTER_CONTEXT(con_exa2);
- DLT_UNREGISTER_APP();
+ DLT_UNREGISTER_APP();
}