Skip to contentSkip to conversation

Better debug when failing to probe a device

PATCH In review Bastien Nocera 2 participants 2 messages Oct 14, 2008 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Better debug when failing to probe a device

The previous error message was a bit terse.

Quoted 1 line

From 5c71324238e5380530a298bb63ec9d79b7a1f219 Mon Sep 17 00:00:00 2001

From: Bastien Nocera <[email protected]>
Date: Tue, 14 Oct 2008 21:58:51 +0100
Subject: [PATCH] Better debug when failing to probe a device

The previous error message was a bit terse.

---
 src/device.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
src/device.c +2 -2
index 7294d3c..2a48406 100644
@@ -646,8 +646,8 @@ void device_probe_drivers(struct btd_device *device, GSList *uuids)
 
 			err = driver->probe(device, probe_uuids);
 			if (err < 0) {
-				error("probe failed for driver %s",
-							driver->name);
+				error("probe failed with driver %s for device %s",
+							driver->name, device->path);
 
 				g_free(driver_data);
 				g_slist_free(probe_uuids);
Signature · 1 line
1.5.5.2
#1 lore raw

Hi Bastien,

Quoted 2 lines · Bastien Nocera

The previous error message was a bit terse. <0002-Better-debug-when-failing-to-probe-a-device.patch>

This one is now pushed. I'll leave the other one for Marcel since I'm not so familiar with udev stuff.

Johan