diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-06-09 22:47:48 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2009-06-09 22:47:48 +0200 |
commit | 9060b066d9e7aaca9795010ac5fff61018947f87 (patch) | |
tree | e79743bf9b075b10e2de962579e63a30ce36202e /extras/ata_id/ata_id.c | |
parent | 119f66fc36b4f5164fb4a9ece247938e97609a05 (diff) |
move syslog wrapper to libudev
Diffstat (limited to 'extras/ata_id/ata_id.c')
-rw-r--r-- | extras/ata_id/ata_id.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/extras/ata_id/ata_id.c b/extras/ata_id/ata_id.c index dd28d91f4a..d976467817 100644 --- a/extras/ata_id/ata_id.c +++ b/extras/ata_id/ata_id.c @@ -35,7 +35,8 @@ #include <linux/types.h> #include <linux/hdreg.h> -#include "../../udev/udev.h" +#include "libudev.h" +#include "libudev-private.h" static void log_fn(struct udev *udev, int priority, const char *file, int line, const char *fn, @@ -66,7 +67,7 @@ int main(int argc, char *argv[]) if (udev == NULL) goto exit; - logging_init("ata_id"); + udev_log_init("ata_id"); udev_set_log_fn(udev, log_fn); while (1) { @@ -164,6 +165,6 @@ close: close(fd); exit: udev_unref(udev); - logging_close(); + udev_log_close(); return rc; } |