DiskTool - Added basic flag dump to 'ls'
[tpg/acess2.git] / Tools / DiskTool / src / logging.c
index 07d7a52..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");

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