aboutsummaryrefslogtreecommitdiff
path: root/input
diff options
context:
space:
mode:
authorGustavo F. Padovan <gustavo@padovan.org>2010-05-21 12:54:54 -0300
committerMarcel Holtmann <marcel@holtmann.org>2010-05-21 18:21:48 +0200
commit8e58667ef0a4cda88ac64137728da28d8fdf3f0f (patch)
treea7778a0bfb31d326f08060d82ea026bbb03d49f5 /input
parent9f71c68cc547f56c343d04f9c96d6fb27bde5050 (diff)
downloadbluez-8e58667ef0a4cda88ac64137728da28d8fdf3f0f.tar.gz
Move debug() to DBG()
Use the new dynamic debug feature
Diffstat (limited to 'input')
-rw-r--r--input/device.c6
-rw-r--r--input/manager.c2
-rw-r--r--input/server.c2
3 files changed, 5 insertions, 5 deletions
diff --git a/input/device.c b/input/device.c
index 9b18d28b..8daf8b26 100644
--- a/input/device.c
+++ b/input/device.c
@@ -298,7 +298,7 @@ static gboolean rfcomm_io_cb(GIOChannel *chan, GIOCondition cond, gpointer data)
goto failed;
}
- debug("Received: %s", buf);
+ DBG("Received: %s", buf);
if (g_io_channel_write(chan, ok, 6, &bwritten) != G_IO_ERROR_NONE) {
error("IO Channel write error");
@@ -1004,7 +1004,7 @@ static void device_unregister(void *data)
{
struct input_device *idev = data;
- debug("Unregistered interface %s on path %s", INPUT_DEVICE_INTERFACE,
+ DBG("Unregistered interface %s on path %s", INPUT_DEVICE_INTERFACE,
idev->path);
devices = g_slist_remove(devices, idev);
@@ -1091,7 +1091,7 @@ static struct input_device *input_device_new(DBusConnection *conn,
return NULL;
}
- debug("Registered interface %s on path %s",
+ DBG("Registered interface %s on path %s",
INPUT_DEVICE_INTERFACE, idev->path);
return idev;
diff --git a/input/manager.c b/input/manager.c
index 1dd23080..a98a0807 100644
--- a/input/manager.c
+++ b/input/manager.c
@@ -179,7 +179,7 @@ int input_manager_init(DBusConnection *conn, GKeyFile *config)
idle_timeout = g_key_file_get_integer(config, "General",
"IdleTimeout", &err);
if (err) {
- debug("input.conf: %s", err->message);
+ DBG("input.conf: %s", err->message);
g_error_free(err);
}
}
diff --git a/input/server.c b/input/server.c
index 12a4d315..d98018b5 100644
--- a/input/server.c
+++ b/input/server.c
@@ -82,7 +82,7 @@ static void connect_event_cb(GIOChannel *chan, GError *err, gpointer data)
return;
}
- debug("Incoming connection on PSM %d", psm);
+ DBG("Incoming connection on PSM %d", psm);
ret = input_device_set_channel(&src, &dst, psm, chan);
if (ret == 0)