X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=extras%2Fpath_id%2Fpath_id.c;h=53720e0fe2c947d42e838ab1378d3e983bca7dbd;hp=08b7e150c9dacfd37ad17111a7ec7b0e58c90dd2;hb=1b691f831b43ceeef3d780f87e02fb177dd03281;hpb=67dd1cdf9d42497c5e164549cd5f67a7ee62e796 diff --git a/extras/path_id/path_id.c b/extras/path_id/path_id.c index 08b7e150c..53720e0fe 100644 --- a/extras/path_id/path_id.c +++ b/extras/path_id/path_id.c @@ -3,6 +3,8 @@ * * Copyright (C) 2009 Kay Sievers * + * Log based on Hannes Reinecke's shell script. + * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 2 of the License, or @@ -28,10 +30,10 @@ #include #include -#include <../../udev/lib/libudev.h> -#include <../../udev/udev.h> +#include "libudev.h" +#include "libudev-private.h" -int debug; +static int debug; static void log_fn(struct udev *udev, int priority, const char *file, int line, const char *fn, @@ -366,7 +368,7 @@ int main(int argc, char **argv) if (udev == NULL) goto exit; - logging_init("usb_id"); + udev_log_init("path_id"); udev_set_log_fn(udev, log_fn); while (1) { @@ -465,6 +467,6 @@ out: udev_device_unref(dev); exit: udev_unref(udev); - logging_close(); + udev_log_close(); return rc; }