X-Git-Url: http://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=discover%2Fdevice-handler.c;h=0f876658b5a2331750ceeced591bfca53e81f042;hp=8a4930e1efd565d8487f88875b26774adddcc882;hb=1d8d12aceeb41c2cde4736fe4c9926cbc9cf38d4;hpb=58821e4d5e593e4a828a1d79215e9480e9a6ca4f 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; }