void Debug_Fmt(const char *format, va_list *args)
{
char c, pad = ' ';
- int minSize = 0;
+ int minSize = 0, len;
char tmpBuf[34]; // For Integers
char *p = NULL;
int isLongLong = 0;
case 's':
p = (char*)(Uint)arg;
+ if(!p) p = "(null)";
+ len = strlen(p);
+ while(len++ < minSize) Debug_Putchar(pad);
printString:
if(!p) p = "(null)";
while(*p) Debug_Putchar(*p++);
if(giDebug_KTerm != -1)
VFS_Close(giDebug_KTerm);
giDebug_KTerm = VFS_Open(File, VFS_OPENFLAG_WRITE);
- Log("Opened '%s' as 0x%x", File, giDebug_KTerm);
+ Log_Log("Debug", "Opened '%s' as 0x%x", File, giDebug_KTerm);
}
void Debug_Enter(char *FuncName, char *ArgTypes, ...)