X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fudev.c;h=b93c1a5f0ff6d68dace1c0cf8605c528dd11f3c2;hp=66d9544ad81dfe21c914b5505315ac556998a650;hb=ce8a340bffd224290ad5219baa5f0466fcd9fd55;hpb=812761a1f8ff94e4913529840b905360ff843fc4 diff --git a/discover/udev.c b/discover/udev.c index 66d9544..b93c1a5 100644 --- a/discover/udev.c +++ b/discover/udev.c @@ -11,9 +11,9 @@ #include #include +#include #include "udev.h" -#include "log.h" #include "pb-discover.h" #include "device-handler.h" @@ -82,10 +82,10 @@ static void print_event(struct udev_event *event) action = event->action == UDEV_ACTION_ADD ? "add" : "remove"; pb_log("udev %s event:\n", action); - printf("\tdevice: %s\n", event->device); + pb_log("\tdevice: %s\n", event->device); for (i = 0; params[i]; i++) - printf("\t%-12s => %s\n", + pb_log("\t%-12s => %s\n", params[i], udev_event_param(event, params[i])); }