summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorChristian Muck <christian.muck@bmw.de>2012-05-30 09:29:19 +0200
committerChristian Muck <christian.muck@bmw.de>2012-05-30 09:29:19 +0200
commit9141005cf22f379059c27aa4a82111a13e760883 (patch)
tree5181f382d26f2eac22acae1b43c7472da6c6a8f8 /src/tests
parente6c9f558fd1aabef7063948a4f5b4e9600b265f9 (diff)
downloadDLT-daemon-9141005cf22f379059c27aa4a82111a13e760883.tar.gz
Added dlt log to injection methods
Signed-off-by: Christian Muck <christian.muck@bmw.de>
Diffstat (limited to 'src/tests')
-rwxr-xr-xsrc/tests/dlt-test-user.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tests/dlt-test-user.c b/src/tests/dlt-test-user.c
index 4e26d9d..be4e654 100755
--- a/src/tests/dlt-test-user.c
+++ b/src/tests/dlt-test-user.c
@@ -1016,10 +1016,9 @@ int test_injection_macro_callback(uint32_t service_id, void *data, uint32_t leng
char text[1024];
memset(text,0,1024);
-
snprintf(text,1024,"Injection received (macro IF). ID: 0x%.4x, Length: %d",service_id,length);
printf("%s \n", text);
-
+ DLT_LOG(context_macro_callback, DLT_LOG_INFO, DLT_STRING("Injection received (macro IF). ID: "), DLT_UINT32(service_id),DLT_STRING("Data:"),DLT_STRING(text));
memset(text,0,1024);
if (length>0)
@@ -1039,7 +1038,7 @@ int test_injection_function_callback(uint32_t service_id, void *data, uint32_t l
snprintf(text,1024,"Injection received (function IF). ID: 0x%.4x, Length: %d",service_id,length);
printf("%s \n", text);
-
+ DLT_LOG(context_function_callback, DLT_LOG_INFO, DLT_STRING("Injection received (function IF). ID: "), DLT_UINT32(service_id),DLT_STRING("Data:"),DLT_STRING(text));
memset(text,0,1024);
if (length>0)