summaryrefslogtreecommitdiffstats
path: root/discover
diff options
context:
space:
mode:
authorGeoff Levand <geoffrey.levand@am.sony.com>2009-03-25 12:35:53 +0000
committerJeremy Kerr <jk@ozlabs.org>2009-03-30 20:20:06 +1100
commitde9059ff7915589c2033129395dbe724b727e224 (patch)
tree5fc5bce739d9d9888dd27039e4d130600e1d5b9e /discover
parent90615502bf1f12eb7cecd8baad49ade80592b0a3 (diff)
downloadtalos-petitboot-de9059ff7915589c2033129395dbe724b727e224.tar.gz
talos-petitboot-de9059ff7915589c2033129395dbe724b727e224.zip
log discover mount failure
Add the status value to the discover mount failure log. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'discover')
-rw-r--r--discover/device-handler.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/discover/device-handler.c b/discover/device-handler.c
index 8a4930e..0f87665 100644
--- a/discover/device-handler.c
+++ b/discover/device-handler.c
@@ -227,8 +227,11 @@ static int mount_device(struct discover_context *ctx)
goto out_rmdir;
}
- if (!WIFEXITED(status) || WEXITSTATUS(status) != 0)
+ if (!WIFEXITED(status) || WEXITSTATUS(status) != 0) {
+ pb_log("%s: mount failed (%d): %s\n", __func__,
+ WEXITSTATUS(status), ctx->event->device);
goto out_rmdir;
+ }
setup_device_links(ctx);
return 0;
@@ -320,7 +323,6 @@ static int handle_add_event(struct device_handler *handler,
rc = mount_device(ctx);
if (rc) {
- pb_log("mount_device failed for %s\n", event->device);
talloc_free(ctx);
return 0;
}
OpenPOWER on IntegriCloud