summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2012-10-18 11:52:45 -0500
committerDenis Kenzior <denkenz@gmail.com>2012-10-18 11:52:45 -0500
commit15fbd24ce6cec77c4bfbefafb2f645a2378f8b0f (patch)
tree8dc512505c75e0389d126d26d20a1aea587e95b9 /tools
parent74d0b74cfed8c2c3eeedae694832301be7b72068 (diff)
downloadofono-15fbd24ce6cec77c4bfbefafb2f645a2378f8b0f.tar.bz2
stktest: Be more explicit with errors
Diffstat (limited to 'tools')
-rw-r--r--tools/stktest.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/stktest.c b/tools/stktest.c
index 3f031c66..9d883623 100644
--- a/tools/stktest.c
+++ b/tools/stktest.c
@@ -281,7 +281,9 @@ static DBusMessage *func(DBusConnection *conn, DBusMessage *msg, \
func = test->agent_func; \
\
if (strcmp(test->method, method_name)) { \
- g_printerr("Wrong method called!\n"); \
+ g_printerr("Wrong method called!" \
+ " Expected: %s, Got: %s\n", \
+ test->method, method_name); \
__stktest_test_finish(FALSE); \
return stktest_error_failed(msg); \
} \
@@ -334,7 +336,9 @@ static DBusMessage *func(DBusConnection *conn, DBusMessage *msg, \
func = test->agent_func; \
\
if (strcmp(test->method, method_name)) { \
- g_printerr("Wrong method called!\n"); \
+ g_printerr("Wrong method called!" \
+ " Expected: %s, Got: %s\n", \
+ test->method, method_name); \
__stktest_test_finish(FALSE); \
return stktest_error_failed(msg); \
} \