Merge branch 'master' of git://localhost/acess2
[tpg/acess2.git] / Tools / DiskTool / src / logging.c
index 2b03c6f..0cb3ed3 100644 (file)
@@ -67,7 +67,7 @@ void Debug_HexDump(const char *Prefix, const void *Data, size_t Length)
        fprintf(stderr, "[HexDump ]d %s:", Prefix);
        for( ; ofs < Length; ofs ++ )
        {
-               if( ofs % 16 == 8 )     fprintf(stderr, " ");
+               if( ofs % 8 == 0 )      fprintf(stderr, " ");
                fprintf(stderr, " %02x", data[ofs%16]);
        }
        fprintf(stderr, "\n");
@@ -190,6 +190,9 @@ void Debug_TraceLeave(const char *Function, char Type, ...)
        case 'p':
                fprintf(stderr, " %p", va_arg(args, const void *));
                break;
+       case 'n':
+               fprintf(stderr, " NULL");
+               break;
        default:
                fprintf(stderr, " ?");
                break;

UCC git Repository :: git.ucc.asn.au