/*
- * compose persisistent device path
+ * compose persistent device path
*
* Copyright (C) 2009 Kay Sievers <kay.sievers@vrfy.org>
*
+ * Logic 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
#include <dirent.h>
#include <getopt.h>
-#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,
if (udev == NULL)
goto exit;
- logging_init("usb_id");
+ udev_log_init("path_id");
udev_set_log_fn(udev, log_fn);
while (1) {
udev_device_unref(dev);
exit:
udev_unref(udev);
- logging_close();
+ udev_log_close();
return rc;
}