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
Kernel - Implemented waking from semaphores
[tpg/acess2.git]
/
Kernel
/
debug.c
diff --git
a/Kernel/debug.c
b/Kernel/debug.c
index
6e7a000
..
7915b86
100644
(file)
--- a/
Kernel/debug.c
+++ b/
Kernel/debug.c
@@
-250,7
+250,7
@@
void Debug_Enter(const char *FuncName, const char *ArgTypes, ...)
va_start(args, ArgTypes);
va_start(args, ArgTypes);
- LogF("%01
2
lli ", now());
+ LogF("%01
4
lli ", now());
while(i--) Debug_Putchar(' ');
Debug_Puts(1, FuncName);
while(i--) Debug_Putchar(' ');
Debug_Puts(1, FuncName);
@@
-308,7
+308,7
@@
void Debug_Log(const char *FuncName, const char *Fmt, ...)
va_start(args, Fmt);
va_start(args, Fmt);
- LogF("%01
2
lli ", now());
+ LogF("%01
4
lli ", now());
while(i--) Debug_Putchar(' ');
Debug_Puts(1, FuncName);
while(i--) Debug_Putchar(' ');
Debug_Puts(1, FuncName);
@@
-343,7
+343,7
@@
void Debug_Leave(const char *FuncName, char RetType, ...)
gDebug_Level = 0;
i = 0;
}
gDebug_Level = 0;
i = 0;
}
- LogF("%01
2
lli ", now());
+ LogF("%01
4
lli ", now());
// Indenting
while(i--) Debug_Putchar(' ');
// Indenting
while(i--) Debug_Putchar(' ');
@@
-387,10
+387,11
@@
void Debug_HexDump(const char *Header, const void *Data, Uint Length)
{
const Uint8 *cdat = Data;
Uint pos = 0;
{
const Uint8 *cdat = Data;
Uint pos = 0;
+ LogF("%014lli ", now());
Debug_Puts(1, Header);
LogF(" (Hexdump of %p)\r\n", Data);
Debug_Puts(1, Header);
LogF(" (Hexdump of %p)\r\n", Data);
- #define CH(n) ((' '<=cdat[(n)]&&cdat[(n)]<
=
0x7F) ? cdat[(n)] : '.')
+ #define CH(n) ((' '<=cdat[(n)]&&cdat[(n)]<0x7F) ? cdat[(n)] : '.')
while(Length >= 16)
{
while(Length >= 16)
{
@@
-410,7
+411,7
@@
void Debug_HexDump(const char *Header, const void *Data, Uint Length)
{
int i ;
{
int i ;
- LogF("
Log: %04x: "
, pos);
+ LogF("
%014lli Log: %04x: ", now()
, pos);
for(i = 0; i < Length; i ++)
{
LogF("%02x ", cdat[i]);
for(i = 0; i < Length; i ++)
{
LogF("%02x ", cdat[i]);
UCC
git Repository :: git.ucc.asn.au