diff options
author | Christoph Lipka <clipka@de.adit-jv.com> | 2018-12-20 14:58:19 +0100 |
---|---|---|
committer | Christoph Lipka <clipka@de.adit-jv.com> | 2018-12-21 10:23:41 +0100 |
commit | dca8ab254aa0a687c32009079d85e4d8f960b213 (patch) | |
tree | e63b6a552fd9f61873892110a56a89ef354864cd /examples/example3 | |
parent | 0d0c74640c8b792db37cb9f884f89f7561ea551f (diff) | |
download | DLT-daemon-dca8ab254aa0a687c32009079d85e4d8f960b213.tar.gz |
Code beautification using uncrustify
Signed-off-by: Christoph Lipka <clipka@de.adit-jv.com>
Diffstat (limited to 'examples/example3')
-rw-r--r-- | examples/example3/dlt_id.h | 2 | ||||
-rw-r--r-- | examples/example3/example3.c | 27 |
2 files changed, 14 insertions, 15 deletions
diff --git a/examples/example3/dlt_id.h b/examples/example3/dlt_id.h index 149e22d..66f0684 100644 --- a/examples/example3/dlt_id.h +++ b/examples/example3/dlt_id.h @@ -15,7 +15,7 @@ * @licence end@ */ -// generated file, do not edit +/* generated file, do not edit */ #ifndef DLT_ID_H #define DLT_ID_H 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(); } |