From 201b93326103788b4645a7e14ca71312f9a4ef88 Mon Sep 17 00:00:00 2001 From: Lassi Marttala Date: Fri, 27 Jan 2012 10:38:50 +0100 Subject: Add descriptions for app and context. --- src/tests/dlt-test-multi-process.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/tests/dlt-test-multi-process.c') diff --git a/src/tests/dlt-test-multi-process.c b/src/tests/dlt-test-multi-process.c index 7af93c6..705a6fe 100755 --- a/src/tests/dlt-test-multi-process.c +++ b/src/tests/dlt-test-multi-process.c @@ -304,9 +304,11 @@ void do_logging(s_thread_data *data) { DltContext mycontext; char ctid[5]; + char ctid_name[256]; sprintf(ctid,"%.2x", rand() & 0x0000ffff); - DLT_REGISTER_CONTEXT(mycontext, ctid, "Child in dlt-test-multi-process"); + sprintf(ctid_name, "Child %s in dlt-test-multi-process", ctid); + DLT_REGISTER_CONTEXT(mycontext, ctid, ctid_name); data->ctx = mycontext; int msgs_left = data->params.nmsgs; @@ -326,11 +328,13 @@ void run_threads(s_parameters params) pthread_t thread[params.nthreads]; s_thread_data thread_data; char apid[5]; + char apid_name[256]; int i; srand(getpid()); sprintf(apid,"MT%.1x", rand() & 0x000000ff); - DLT_REGISTER_APP(apid,DMPT_NAME); + sprintf(apid_name, "Apps %s.", apid); + DLT_REGISTER_APP(apid, apid_name); thread_data.params = params; -- cgit v1.2.1