\r
// Check the file type\r
if(hdr.ident[0] != 0x7F || hdr.ident[1] != 'E' || hdr.ident[2] != 'L' || hdr.ident[3] != 'F') {\r
- Warning("Non-ELF File was passed to the ELF loader\n");\r
+ Log_Warning("ELF", "Non-ELF File was passed to the ELF loader");\r
LEAVE('n');\r
return NULL;\r
}\r
// Check for a program header\r
if(hdr.phoff == 0) {\r
#if DEBUG_WARN\r
- Warning("ELF File does not contain a program header\n");\r
+ Log_Warning("ELF", "File does not contain a program header (phoff == 0)");\r
#endif\r
LEAVE('n');\r
return NULL;\r
// Reallocate\r
ret = realloc( ret, sizeof(tBinary) + 3*sizeof(Uint)*j );\r
if(!ret) {\r
- Warning("BIN", "ElfLoad: Unable to reallocate return structure");\r
+ Log_Warning("BIN", "ElfLoad: Unable to reallocate return structure");\r
return NULL;\r
}\r
ret->NumPages = j;\r