diff options
| author | Johan Hedberg <johan.hedberg@nokia.com> | 2007-08-31 13:01:10 +0000 | 
|---|---|---|
| committer | Johan Hedberg <johan.hedberg@nokia.com> | 2007-08-31 13:01:10 +0000 | 
| commit | d166a230af9dca8be3c27d75e8f1eaf66c49c9d4 (patch) | |
| tree | c3803cb85f278178214d3db498a560838f166347 /audio | |
| parent | ec384afacde8614306abe32cf40c55b795783f0e (diff) | |
Add some extra debug info
Diffstat (limited to 'audio')
| -rw-r--r-- | audio/headset.c | 12 | 
1 files 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; | 
