[pulseaudio-discuss] [PATCH v0 1/7] bluetooth: Fix incorrect error messages
Mikel Astiz
mikel.astiz.oss at gmail.com
Fri Jan 11 02:07:43 PST 2013
From: Mikel Astiz <mikel.astiz at bmw-carit.de>
err.message doesn't contain anything useful in these error cases so
fix the mistake and avoid misleading messages.
---
src/modules/bluetooth/bluetooth-util.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/modules/bluetooth/bluetooth-util.c b/src/modules/bluetooth/bluetooth-util.c
index f216d9b..65ed9c0 100644
--- a/src/modules/bluetooth/bluetooth-util.c
+++ b/src/modules/bluetooth/bluetooth-util.c
@@ -975,7 +975,7 @@ static DBusHandlerResult filter_cb(DBusConnection *bus, DBusMessage *m, void *us
bool old_any_connected = pa_bluetooth_device_any_audio_connected(d);
if (!dbus_message_iter_init(m, &arg_i)) {
- pa_log("Failed to parse PropertyChanged: %s", err.message);
+ pa_log("Failed to parse PropertyChanged for device %s", d->path);
goto fail;
}
@@ -1025,7 +1025,7 @@ static DBusHandlerResult filter_cb(DBusConnection *bus, DBusMessage *m, void *us
goto fail;
if (!dbus_message_iter_init(m, &arg_i)) {
- pa_log("Failed to parse PropertyChanged: %s", err.message);
+ pa_log("Failed to parse PropertyChanged for transport %s", t->path);
goto fail;
}
--
1.7.11.7
More information about the pulseaudio-discuss
mailing list