From 15fbd24ce6cec77c4bfbefafb2f645a2378f8b0f Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Thu, 18 Oct 2012 11:52:45 -0500 Subject: [PATCH] stktest: Be more explicit with errors --- tools/stktest.c | 8 ++++++-- 1 file 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); \ } \