svn commit: r292620 - head/sys/kern
Konstantin Belousov
kib at FreeBSD.org
Tue Dec 22 20:12:54 UTC 2015
Author: kib
Date: Tue Dec 22 20:12:52 2015
New Revision: 292620
URL: https://svnweb.freebsd.org/changeset/base/292620
Log:
If we annoy user with the terminal output due to failed load of
interpreter, also show the actual error code instead of some
interpretation.
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Modified:
head/sys/kern/imgact_elf.c
Modified: head/sys/kern/imgact_elf.c
==============================================================================
--- head/sys/kern/imgact_elf.c Tue Dec 22 20:08:32 2015 (r292619)
+++ head/sys/kern/imgact_elf.c Tue Dec 22 20:12:52 2015 (r292620)
@@ -1009,7 +1009,8 @@ __CONCAT(exec_, __elfN(imgact))(struct i
}
vn_lock(imgp->vp, LK_EXCLUSIVE | LK_RETRY);
if (error != 0) {
- uprintf("ELF interpreter %s not found\n", interp);
+ uprintf("ELF interpreter %s not found, error %d\n",
+ interp, error);
goto ret;
}
} else
More information about the svn-src-head
mailing list