We often want to find out why a device has been skipped, so include the
SKIP messages at pb_log, which doesn't require a -DDEBUG build.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
}
if (!(!strcmp(typestr, "disk") || !strcmp(typestr, "partition"))) {
}
if (!(!strcmp(typestr, "disk") || !strcmp(typestr, "partition"))) {
- pb_debug("SKIP %s: invalid type %s\n", name, typestr);
+ pb_log("SKIP %s: invalid type %s\n", name, typestr);
path = udev_device_get_devpath(dev);
if (path && (strstr(path, "virtual/block/loop")
|| strstr(path, "virtual/block/ram"))) {
path = udev_device_get_devpath(dev);
if (path && (strstr(path, "virtual/block/loop")
|| strstr(path, "virtual/block/ram"))) {
- pb_debug("SKIP: %s: ignored (path=%s)\n", name, path);
+ pb_log("SKIP: %s: ignored (path=%s)\n", name, path);
* petitboot-compatible tray behaviour */
cdrom_init(node);
if (!cdrom_media_present(node)) {
* petitboot-compatible tray behaviour */
cdrom_init(node);
if (!cdrom_media_present(node)) {
- pb_debug("SKIP: %s: no media present\n", name);
+ pb_log("SKIP: %s: no media present\n", name);
return 0;
}
}
type = udev_device_get_property_value(dev, "ID_FS_TYPE");
if (!type) {
return 0;
}
}
type = udev_device_get_property_value(dev, "ID_FS_TYPE");
if (!type) {
- pb_debug("SKIP: %s: no ID_FS_TYPE property\n", name);
+ pb_log("SKIP: %s: no ID_FS_TYPE property\n", name);
return udev_handle_block_add(udev, dev, name);
}
return udev_handle_block_add(udev, dev, name);
}
- pb_debug("SKIP %s: unknown subsystem %s\n", name, subsys);
+ pb_log("SKIP %s: unknown subsystem %s\n", name, subsys);