summaryrefslogtreecommitdiff
path: root/examples/example3/example3.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/example3/example3.c')
-rw-r--r--examples/example3/example3.c27
1 files changed, 13 insertions, 14 deletions
diff --git a/examples/example3/example3.c b/examples/example3/example3.c
index ced6632..d686ec1 100644
--- a/examples/example3/example3.c
+++ b/examples/example3/example3.c
@@ -22,7 +22,7 @@
* License MPL-2.0: Mozilla Public License version 2.0 http://mozilla.org/MPL/2.0/.
*
* \file example3.c
-*/
+ */
/*******************************************************************************
@@ -56,22 +56,21 @@ DLT_DECLARE_CONTEXT(con_exa3);
int main()
{
- int num;
+ int num;
- DLT_REGISTER_APP("EXA3","Third Example");
- DLT_REGISTER_CONTEXT(con_exa3,"CON","First context");
+ DLT_REGISTER_APP("EXA3", "Third Example");
+ DLT_REGISTER_CONTEXT(con_exa3, "CON", "First context");
- DLT_NONVERBOSE_MODE();
+ DLT_NONVERBOSE_MODE();
- for(num=0;num<10;num++)
- {
- DLT_LOG_ID(con_exa3,DLT_LOG_INFO,DLT_EXA3_CON_EXA3_ID1,DLT_INT32(12345678),DLT_CSTRING("Hello world 1!"));
- DLT_LOG_ID(con_exa3,DLT_LOG_ERROR,DLT_EXA3_CON_EXA3_ID2,DLT_INT32(87654321),DLT_CSTRING("Hello world 2!"));
- DLT_LOG_ID(con_exa3,DLT_LOG_WARN,DLT_EXA3_CON_EXA3_ID3,DLT_INT32(11223344),DLT_CSTRING("Hello world 3!"));
- usleep(1000);
- }
+ for (num = 0; num < 10; num++) {
+ DLT_LOG_ID(con_exa3, DLT_LOG_INFO, DLT_EXA3_CON_EXA3_ID1, DLT_INT32(12345678), DLT_CSTRING("Hello world 1!"));
+ DLT_LOG_ID(con_exa3, DLT_LOG_ERROR, DLT_EXA3_CON_EXA3_ID2, DLT_INT32(87654321), DLT_CSTRING("Hello world 2!"));
+ DLT_LOG_ID(con_exa3, DLT_LOG_WARN, DLT_EXA3_CON_EXA3_ID3, DLT_INT32(11223344), DLT_CSTRING("Hello world 3!"));
+ usleep(1000);
+ }
- DLT_UNREGISTER_CONTEXT(con_exa3);
+ DLT_UNREGISTER_CONTEXT(con_exa3);
- DLT_UNREGISTER_APP();
+ DLT_UNREGISTER_APP();
}