From d166a230af9dca8be3c27d75e8f1eaf66c49c9d4 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Fri, 31 Aug 2007 13:01:10 +0000 Subject: Add some extra debug info --- audio/headset.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/audio/headset.c b/audio/headset.c index 0f2732e3..aa066bb7 100644 --- a/audio/headset.c +++ b/audio/headset.c @@ -594,11 +594,13 @@ static void get_record_reply(DBusPendingCall *call, void *data) goto failed_not_supported; } - if (!dbus_message_get_args(reply, NULL, + dbus_error_init(&derr); + if (!dbus_message_get_args(reply, &derr, DBUS_TYPE_ARRAY, DBUS_TYPE_BYTE, &array, &array_len, DBUS_TYPE_INVALID)) { - error("Unable to get args from GetRecordReply"); + error("Unable to get args from GetRecordReply: %s", derr.message); + dbus_error_free(&derr); goto failed_not_supported; } @@ -717,11 +719,13 @@ static void get_handles_reply(DBusPendingCall *call, void *data) goto failed; } - if (!dbus_message_get_args(reply, NULL, + dbus_error_init(&derr); + if (!dbus_message_get_args(reply, &derr, DBUS_TYPE_ARRAY, DBUS_TYPE_UINT32, &array, &array_len, DBUS_TYPE_INVALID)) { - error("Unable to get args from reply"); + error("Unable to get args from reply: %s", derr.message); + dbus_error_free(&derr); if (c->msg) err_not_supported(device->conn, c->msg); goto failed; -- cgit