From 4ff0a97045e63ba53a013a5f680328d359854731 Mon Sep 17 00:00:00 2001 From: Thomas Schuetz Date: Wed, 18 Jan 2012 11:09:03 +0100 Subject: [runtime.c] cleaned up --- .../Debug/liborg.eclipse.etrice.runtime.c.a | Bin 91062 -> 90996 bytes runtime/org.eclipse.etrice.runtime.c/src/etLogger.c | 10 +++------- runtime/org.eclipse.etrice.runtime.c/src/etUnit.c | 2 +- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/runtime/org.eclipse.etrice.runtime.c/Debug/liborg.eclipse.etrice.runtime.c.a b/runtime/org.eclipse.etrice.runtime.c/Debug/liborg.eclipse.etrice.runtime.c.a index 2def3aaec..f2593d66d 100644 Binary files a/runtime/org.eclipse.etrice.runtime.c/Debug/liborg.eclipse.etrice.runtime.c.a and b/runtime/org.eclipse.etrice.runtime.c/Debug/liborg.eclipse.etrice.runtime.c.a differ diff --git a/runtime/org.eclipse.etrice.runtime.c/src/etLogger.c b/runtime/org.eclipse.etrice.runtime.c/src/etLogger.c index bbba4a628..9d58dd2ca 100644 --- a/runtime/org.eclipse.etrice.runtime.c/src/etLogger.c +++ b/runtime/org.eclipse.etrice.runtime.c/src/etLogger.c @@ -24,18 +24,15 @@ void etLogger_logError(const char* message){ - printf("ERROR: %s", message); - printf("\n"); + printf("ERROR: %s\n", message); } void etLogger_logWarning(const char* message){ - printf("WARNING: %s", message); - printf("\n"); + printf("WARNING: %s\n", message); } void etLogger_logInfo(const char* message){ - printf("INFO: %s", message); - printf("\n"); + printf("INFO: %s\n", message); } void etLogger_logErrorF(const char* format, ... ){ @@ -78,5 +75,4 @@ void etLogger_fprintf(etFileHandle file, const char* format, ... ){ va_start( arglist, format ); vfprintf(file, format, arglist ); va_end( arglist ); - } diff --git a/runtime/org.eclipse.etrice.runtime.c/src/etUnit.c b/runtime/org.eclipse.etrice.runtime.c/src/etUnit.c index 30460e278..c798cb92f 100644 --- a/runtime/org.eclipse.etrice.runtime.c/src/etUnit.c +++ b/runtime/org.eclipse.etrice.runtime.c/src/etUnit.c @@ -74,7 +74,7 @@ void etUnit_open(char* testResultPath, char* testFileName) { etLogger_logErrorF("Unable to open file %s/%s.xml", etUnit_TestResultPath, etUnit_TestFileName); } } - // prepare time measurement + /* prepare time measurement */ etUnit_startTime = clock(); etUnit_currentTime = clock(); etLogger_logInfoF("Start Time: %ld", etUnit_startTime); -- cgit v1.2.3