From 26e7f9195005deda91eea83f368c0d53ec95856c Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Thu, 9 Mar 2006 20:10:25 +0000 Subject: More use of the generic logging functions --- hcid/dbus-error.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'hcid/dbus-error.c') 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; } } -- cgit