From 5d1c6af9f59c7a768684a537fc32389be8cddeca Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 8 Aug 2015 14:09:44 +0200 Subject: Print which path init tried to execv * init/init.c (main): On execv failure, print which path failed. --- init/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'init') diff --git a/init/init.c b/init/init.c index b3d33018..fe230daf 100644 --- a/init/init.c +++ b/init/init.c @@ -146,7 +146,7 @@ main (int argc, char **argv) error (1, errno, "failed to fork"); case 0: execv (args[0], args); - error (2, errno, "failed to execv child"); + error (2, errno, "failed to execv child %s", args[0]); } select (0, NULL, NULL, NULL, NULL); -- cgit v1.2.3