summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-error.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-03-09 20:10:25 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-03-09 20:10:25 +0000
commit26e7f9195005deda91eea83f368c0d53ec95856c (patch)
treedfac803d97563ae5d8e116efa19dae10cd72ad18 /hcid/dbus-error.c
parentddeb6ab85924294cbeb6c64321cadef508c347aa (diff)
More use of the generic logging functions
Diffstat (limited to 'hcid/dbus-error.c')
-rw-r--r--hcid/dbus-error.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hcid/dbus-error.c b/hcid/dbus-error.c
index c93b103c..4da6a9fd 100644
--- a/hcid/dbus-error.c
+++ b/hcid/dbus-error.c
@@ -116,13 +116,13 @@ static const char *bluez_dbus_error_to_str(const uint32_t ecode)
if (ecode & BLUEZ_ESYSTEM_OFFSET) {
/* System error */
raw_code = (~BLUEZ_ESYSTEM_OFFSET) & ecode;
- syslog(LOG_INFO, "%s - msg:%s", __PRETTY_FUNCTION__, strerror(raw_code));
+ info("%s - msg:%s", __PRETTY_FUNCTION__, strerror(raw_code));
return strerror(raw_code);
} else if (ecode & BLUEZ_EDBUS_OFFSET) {
/* D-Bus error */
for (ptr = dbus_error_array; ptr->code; ptr++) {
if (ptr->code == ecode) {
- syslog(LOG_INFO, "%s - msg:%s", __PRETTY_FUNCTION__, ptr->str);
+ info("%s - msg:%s", __PRETTY_FUNCTION__, ptr->str);
return ptr->str;
}
}
@@ -130,7 +130,7 @@ static const char *bluez_dbus_error_to_str(const uint32_t ecode)
/* BLUEZ_EBT_OFFSET - Bluetooth HCI errors */
for (ptr = hci_error_array; ptr->code; ptr++) {
if (ptr->code == ecode) {
- syslog(LOG_INFO, "%s - msg:%s", __PRETTY_FUNCTION__, ptr->str);
+ info("%s - msg:%s", __PRETTY_FUNCTION__, ptr->str);
return ptr->str;
}
}