Browse Source

Added newline to prtinf

Casper Thule 6 years ago
parent
commit
4a565dffeb

+ 1 - 1
DSL_SemanticAdaptation/be.uantwerpen.ansymo.semanticadaptation.cg.cpp/src/be/uantwerpen/ansymo/semanticadaptation/cg/cpp/generation/CppGenerator.xtend

@@ -582,7 +582,7 @@ class CppGenerator extends SemanticAdaptationGenerator {
 					'''
 						«functionSignature»
 						{
-							«Utilities.getDebug2('''printf("«adapClassName»::setFmiValue(%u,?)",id);''')»
+							«Utilities.getDebug2('''printf("«adapClassName»::setFmiValue(%d,?)",id);''')»
 							«IF convertedSASVsOrdered.containsKey(type)»
 								switch (id)	
 									{

+ 2 - 0
DSL_SemanticAdaptation/be.uantwerpen.ansymo.semanticadaptation.cg.cpp/src/be/uantwerpen/ansymo/semanticadaptation/cg/cpp/generation/Utilities.xtend

@@ -6,6 +6,7 @@ class Utilities {
 	return '''
 	#ifdef SA_DEBUG
 		printf("Invoking «functionName»");
+		printf("\n");
 	#endif SA_DEBUG	''';
 }
 def static String getDebug2(String printf){
@@ -13,6 +14,7 @@ def static String getDebug2(String printf){
 	return '''
 	#ifdef SA_DEBUG
 		«printf»
+		printf("\n");
 	#endif SA_DEBUG	''';
 }