summaryrefslogtreecommitdiffstats
path: root/discover/udev.c
diff options
context:
space:
mode:
authorGeoff Levand <geoffrey.levand@am.sony.com>2009-02-27 14:54:06 +0000
committerJeremy Kerr <jk@ozlabs.org>2009-03-23 21:49:44 +1100
commita7908ed63584ff12653b37fb2c2548c52c8ed9da (patch)
treef4a8425369a16923abe3a01d4fd14059e7c11c7e /discover/udev.c
parent642466026a078f7c2bf413e94aa720776300b604 (diff)
downloadtalos-petitboot-a7908ed63584ff12653b37fb2c2548c52c8ed9da.tar.gz
talos-petitboot-a7908ed63584ff12653b37fb2c2548c52c8ed9da.zip
Log server messages to file
Log discover server messages to a file. Helps in debugging the server when is has problems at system startup. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Diffstat (limited to 'discover/udev.c')
-rw-r--r--discover/udev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/discover/udev.c b/discover/udev.c
index 9d62840..b93c1a5 100644
--- a/discover/udev.c
+++ b/discover/udev.c
@@ -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]));
}
OpenPOWER on IntegriCloud