*
* Copyright (C) 2004 Kay Sievers <kay.sievers@vrfy.org>
*
- *
* 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 version 2 of the License.
#define SYSFS_VALUE_SIZE 256
-#ifdef LOG
+#ifdef USE_LOG
void log_message (int level, const char *format, ...)
{
va_list args;
return retval;
}
-static int print_dump(struct udevice *udev) {
- printf("%s:%s/%s\n", udev->devpath, udev_root, udev->name);
+static int print_dump(const char *devpath, const char *name) {
+ printf("%s:%s/%s\n", devpath, udev_root, name);
return 0;
}
break;
case 'd':
- udev_db_call_foreach(print_dump);
+ udev_db_dump_names(print_dump);
goto exit;
case 'V':