From: John Hodge Date: Tue, 30 Jul 2013 02:43:52 +0000 (+0800) Subject: Kernel - Added errno print when Binary_Load fails X-Git-Tag: rel0.15~308 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=944e9cd0b4eb05713537d2d46303c9d13ab1f6e8;p=tpg%2Facess2.git Kernel - Added errno print when Binary_Load fails --- 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(;;);