diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2006-03-09 20:10:25 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2006-03-09 20:10:25 +0000 |
commit | 26e7f9195005deda91eea83f368c0d53ec95856c (patch) | |
tree | dfac803d97563ae5d8e116efa19dae10cd72ad18 /hcid/hcid.h | |
parent | ddeb6ab85924294cbeb6c64321cadef508c347aa (diff) |
More use of the generic logging functions
Diffstat (limited to 'hcid/hcid.h')
-rw-r--r-- | hcid/hcid.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/hcid/hcid.h b/hcid/hcid.h index f25ebea8..1483c6ba 100644 --- a/hcid/hcid.h +++ b/hcid/hcid.h @@ -24,7 +24,6 @@ */ #include <time.h> -#include <syslog.h> #include <sys/types.h> #include <sys/ioctl.h> @@ -189,7 +188,7 @@ static inline int find_conn(int dd, int dev_id, long arg) cl = malloc(10 * sizeof(*ci) + sizeof(*cl)); if (!cl) { - syslog(LOG_ERR, "Can't allocate memory"); + error("Can't allocate memory"); return 0; } @@ -198,7 +197,7 @@ static inline int find_conn(int dd, int dev_id, long arg) ci = cl->conn_info; if (ioctl(dd, HCIGETCONNLIST, (void *) cl)) { - syslog(LOG_ERR, "Can't get connection list"); + error("Can't get connection list"); return 0; } |