From 944e9cd0b4eb05713537d2d46303c9d13ab1f6e8 Mon Sep 17 00:00:00 2001 From: John Hodge Date: Tue, 30 Jul 2013 10:43:52 +0800 Subject: [PATCH] Kernel - Added errno print when Binary_Load fails --- KernelLand/Kernel/binary.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/KernelLand/Kernel/binary.c b/KernelLand/Kernel/binary.c index 208ab95b..f6186739 100644 --- a/KernelLand/Kernel/binary.c +++ b/KernelLand/Kernel/binary.c @@ -250,7 +250,7 @@ int Proc_Execve(const char *File, const char **ArgV, const char **EnvP, int Data base = Binary_Load(File, &entry); if(base == 0) { - Log_Warning("Binary", "Proc_Execve - Unable to load '%s'", File); + Log_Warning("Binary", "Proc_Execve - Unable to load '%s' [errno=%i]", File, errno); LEAVE('-'); Threads_Exit(0, -10); for(;;); -- 2.20.1