X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FLibraries%2Fld-acess.so_src%2Floadlib.c;h=85831411b53dc79cdf59da0850a28e7df6cd4743;hb=28c6905a3a3e85860d80a126c250aa4de70683bb;hp=54d4c475f7558e8285308709443caa3897ce23f9;hpb=ed7804028b2b11be0703677aa8eb643a811e5027;p=tpg%2Facess2.git diff --git a/Usermode/Libraries/ld-acess.so_src/loadlib.c b/Usermode/Libraries/ld-acess.so_src/loadlib.c index 54d4c475..85831411 100644 --- a/Usermode/Libraries/ld-acess.so_src/loadlib.c +++ b/Usermode/Libraries/ld-acess.so_src/loadlib.c @@ -70,16 +70,17 @@ Uint LoadLibrary(char *filename, char *SearchDir, char **envp) Uint IsFileLoaded(char *file) { int i; - DEBUGS("IsFileLoaded: (file='%s')\n", file); + DEBUGS("IsFileLoaded: (file='%s')", file); for( i = 0; i < MAX_LOADED_LIBRARIES; i++ ) { if(gLoadedLibraries[i].Base == 0) break; // Last entry has Base set to NULL + DEBUGS(" strcmp('%s', '%s')", gLoadedLibraries[i].Name, file); if(strcmp(gLoadedLibraries[i].Name, file) == 0) { - DEBUGS("IsFileLoaded: Found %i (0x%x)\n", i, gLoadedLibraries[i].Base); + DEBUGS("IsFileLoaded: Found %i (0x%x)", i, gLoadedLibraries[i].Base); return gLoadedLibraries[i].Base; } } - DEBUGS("IsFileLoaded: Not Found\n"); + DEBUGS("IsFileLoaded: Not Found"); return 0; } @@ -171,8 +172,8 @@ Uint GetSymbol(char *name) { if(gLoadedLibraries[i].Base == 0) break; - SysDebug(" GetSymbol: Trying 0x%x, '%s'\n", - gLoadedLibraries[i].Base, gLoadedLibraries[i].Name); + //SysDebug(" GetSymbol: Trying 0x%x, '%s'\n", + // gLoadedLibraries[i].Base, gLoadedLibraries[i].Name); if(GetSymbolFromBase(gLoadedLibraries[i].Base, name, &ret)) return ret; } SysDebug("GetSymbol: === Symbol '%s' not found ===\n", name);