Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Dec 2015 20:12:52 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r292620 - head/sys/kern
Message-ID:  <201512222012.tBMKCqqg039018@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512222012.tBMKCqqg039018>