]> git.ozlabs.org Git - petitboot/blobdiff - discover/resource.c
discover: log cleanup
[petitboot] / discover / resource.c
index b31a215b39be8b345e46abe97fcb1c2ae16387de..b4fa9ca3930f350b8622027a793c0a5be427ef55 100644 (file)
@@ -6,6 +6,7 @@
 #include <string.h>
 
 #include <url/url.h>
 #include <string.h>
 
 #include <url/url.h>
+#include <log/log.h>
 #include <talloc/talloc.h>
 
 #include "device-handler.h"
 #include <talloc/talloc.h>
 
 #include "device-handler.h"
@@ -82,6 +83,8 @@ struct resource *create_devpath_resource(struct discover_boot_option *opt,
        devstr = talloc_strndup(res, devpath, pos - devpath);
        path = talloc_strdup(res, pos + 1);
 
        devstr = talloc_strndup(res, devpath, pos - devpath);
        path = talloc_strdup(res, pos + 1);
 
+       pb_log("%s: resource depends on device %s\n", __func__, devstr);
+
        /* defer resolution until we can find a suitable matching device */
        info = talloc(res, struct devpath_resource_info);
        info->dev = devstr;
        /* defer resolution until we can find a suitable matching device */
        info = talloc(res, struct devpath_resource_info);
        info->dev = devstr;