Usermode - Working on new build/makefile system
[tpg/acess2.git] / Kernel / binary.c
index 8c28d72..20da5c4 100644 (file)
@@ -377,7 +377,7 @@ tVAddr Binary_MapIn(tBinary *Binary, const char *Path, tVAddr LoadMin, tVAddr Lo
                }
        }
        
-       Log_Debug("Binary", "PID %i - Mapped '%s' to 0x%x", Threads_GetPID(), Path, base);
+       Log_Debug("Binary", "PID %i - Mapped '%s' to %p", Threads_GetPID(), Path, base);
        VFS_Close(fd);
        
        LEAVE('p', base);
@@ -452,8 +452,6 @@ tBinary *Binary_DoLoad(tMount MountID, tInode Inode, const char *Path)
                break;
        }
 
-       LOG("pBinary = %p", pBinary);
-       
        // Close File
        VFS_Close(fp);
        
@@ -465,6 +463,8 @@ tBinary *Binary_DoLoad(tMount MountID, tInode Inode, const char *Path)
                return NULL;
        }
        
+       LOG("pBinary = %p", pBinary);
+       
        // Error Check
        if(pBinary == NULL) {
                LEAVE('n');

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