]> git.ozlabs.org Git - petitboot/blobdiff - discover/resource.c
discover: Remove unused params.c
[petitboot] / discover / resource.c
index f9019d1408eed5556b100140bd9c86437858e7b4..c09c1c51051679900b11dfc513b8f115436239f5 100644 (file)
@@ -1,5 +1,7 @@
 
-#define _GNU_SOURCE
+#if defined(HAVE_CONFIG_H)
+#include "config.h"
+#endif
 
 #include <assert.h>
 #include <stdbool.h>
@@ -84,7 +86,7 @@ struct resource *create_devpath_resource(struct discover_boot_option *opt,
        devstr = talloc_strndup(res, devpath, pos - devpath);
        path = talloc_strdup(res, pos + 1);
 
-       pb_log("%s: resource depends on device %s\n", __func__, devstr);
+       pb_log_fn("resource depends on device %s\n", devstr);
 
        /* defer resolution until we can find a suitable matching device */
        info = talloc(res, struct devpath_resource_info);