diff options
author | Kay Sievers <kay@vrfy.org> | 2014-11-13 13:11:04 +0100 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2014-11-13 13:12:57 +0100 |
commit | 25e773eeb4f853804e1bf0dbd9a184f23e9b2a97 (patch) | |
tree | b8fe0c0d5d8920e3e522427342d366d722eb35be /src/test/test-libudev.c | |
parent | a974cacd9ac179599f3645409664ccb254ed6bbb (diff) | |
download | systemd-25e773eeb4f853804e1bf0dbd9a184f23e9b2a97.tar.gz systemd-25e773eeb4f853804e1bf0dbd9a184f23e9b2a97.tar.bz2 systemd-25e773eeb4f853804e1bf0dbd9a184f23e9b2a97.zip |
udev: switch to systemd logging functions
Diffstat (limited to 'src/test/test-libudev.c')
-rw-r--r-- | src/test/test-libudev.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/test/test-libudev.c b/src/test/test-libudev.c index a51814df95..293c151d42 100644 --- a/src/test/test-libudev.c +++ b/src/test/test-libudev.c @@ -34,14 +34,6 @@ #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) -_printf_(6,0) -static void log_fn(struct udev *udev, - int priority, const char *file, int line, const char *fn, - const char *format, va_list args) { - printf("test-libudev: %s %s:%d ", fn, file, line); - vprintf(format, args); -} - static void print_device(struct udev_device *device) { const char *str; dev_t devnum; @@ -431,9 +423,6 @@ int main(int argc, char *argv[]) { printf("no context\n"); return 1; } - udev_set_log_fn(udev, log_fn); - printf("set log: %p\n", log_fn); - while ((c = getopt_long(argc, argv, "p:s:dhV", options, NULL)) >= 0) switch (c) { @@ -447,8 +436,8 @@ int main(int argc, char *argv[]) { break; case 'd': - if (udev_get_log_priority(udev) < LOG_INFO) - udev_set_log_priority(udev, LOG_INFO); + if (log_get_max_level() < LOG_INFO) + log_set_max_level(LOG_INFO); break; case 'h': |