Kernel - Added errno print when Binary_Load fails
authorJohn Hodge <[email protected]>
Tue, 30 Jul 2013 02:43:52 +0000 (10:43 +0800)
committerJohn Hodge <[email protected]>
Tue, 30 Jul 2013 02:43:52 +0000 (10:43 +0800)
KernelLand/Kernel/binary.c

index 208ab95..f618673 100644 (file)
@@ -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(;;);

UCC git Repository :: git.ucc.asn.au