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
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to