summaryrefslogtreecommitdiff
path: root/src/ata_id/ata_id.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-08-11 20:13:38 +0200
committerAnthony G. Basile <blueness@gentoo.org>2014-08-12 14:14:22 -0400
commitc597413eb3b84b24bc532331a4ab788c656ec0e2 (patch)
tree2aae2dca20cb0bbb8fde0c1d3dca0ed998b80597 /src/ata_id/ata_id.c
parentba33e83c5a8eb5ea54546438d2cfcde27fd59757 (diff)
udev: never bypass our own logging framework and call vsyslog() directly from udev tools
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/ata_id/ata_id.c')
-rw-r--r--src/ata_id/ata_id.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ata_id/ata_id.c b/src/ata_id/ata_id.c
index b416cde39a..8ead84cf27 100644
--- a/src/ata_id/ata_id.c
+++ b/src/ata_id/ata_id.c
@@ -414,7 +414,7 @@ static void log_fn(struct udev *udev, int priority,
const char *file, int line, const char *fn,
const char *format, va_list args)
{
- vsyslog(priority, format, args);
+ log_metav(priority, file, line, fn, format, args);
}
int main(int argc, char *argv[])
@@ -439,11 +439,12 @@ int main(int argc, char *argv[])
{}
};
+ log_open();
+
udev = udev_new();
if (udev == NULL)
goto exit;
- log_open();
udev_set_log_fn(udev, log_fn);
while (1) {