From dca8ab254aa0a687c32009079d85e4d8f960b213 Mon Sep 17 00:00:00 2001 From: Christoph Lipka Date: Thu, 20 Dec 2018 14:58:19 +0100 Subject: Code beautification using uncrustify Signed-off-by: Christoph Lipka --- examples/example2/example2.c | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) (limited to 'examples/example2/example2.c') 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(); } -- cgit v1.2.1