git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
libreadline - Rework of library (less sucky now!)
[tpg/acess2.git]
/
Kernel
/
debug.c
diff --git
a/Kernel/debug.c
b/Kernel/debug.c
index
c05efa0
..
f59704a
100644
(file)
--- a/
Kernel/debug.c
+++ b/
Kernel/debug.c
@@
-25,7
+25,10
@@
extern void KernelPanic_PutChar(char Ch);
int getDebugChar(void);
static void Debug_Putchar(char ch);
static void Debug_Puts(int DbgOnly, const char *Str);
int getDebugChar(void);
static void Debug_Putchar(char ch);
static void Debug_Puts(int DbgOnly, const char *Str);
+void Debug_DbgOnlyFmt(const char *format, va_list args);
+void Debug_FmtS(const char *format, ...);
void Debug_Fmt(const char *format, va_list args);
void Debug_Fmt(const char *format, va_list args);
+void Debug_SetKTerminal(const char *File);
// === GLOBALS ===
int gDebug_Level = 0;
// === GLOBALS ===
int gDebug_Level = 0;
@@
-308,6
+311,7
@@
void Debug_Enter(const char *FuncName, const char *ArgTypes, ...)
va_start(args, ArgTypes);
va_start(args, ArgTypes);
+ LogF("%012lli ", now());
while(i--) Debug_Putchar(' ');
Debug_Puts(1, FuncName);
while(i--) Debug_Putchar(' ');
Debug_Puts(1, FuncName);
@@
-365,6
+369,7
@@
void Debug_Log(const char *FuncName, const char *Fmt, ...)
va_start(args, Fmt);
va_start(args, Fmt);
+ LogF("%012lli ", now());
while(i--) Debug_Putchar(' ');
Debug_Puts(1, FuncName);
while(i--) Debug_Putchar(' ');
Debug_Puts(1, FuncName);
@@
-399,6
+404,7
@@
void Debug_Leave(const char *FuncName, char RetType, ...)
gDebug_Level = 0;
i = 0;
}
gDebug_Level = 0;
i = 0;
}
+ LogF("%012lli ", now());
// Indenting
while(i--) Debug_Putchar(' ');
// Indenting
while(i--) Debug_Putchar(' ');
UCC
git Repository :: git.ucc.asn.au