comparison src/debug.c @ 90:631d02d30a1c

More fixes for 32/64 bit portability on big endian ppc.
author Carl Byington <carl@five-ten-sg.com>
date Tue, 05 Aug 2008 11:52:29 -0700
parents 56fa05fd5271
children 9bd455802437
comparison
equal deleted inserted replaced
89:156213d65958 90:631d02d30a1c
53 53
54 if (!out) return; // no file 54 if (!out) return; // no file
55 if (col == -1) col = NUM_COL; 55 if (col == -1) col = NUM_COL;
56 fprintf(out, "\n"); 56 fprintf(out, "\n");
57 while (off < size) { 57 while (off < size) {
58 fprintf(out, "%06X\t:", off+delta); 58 fprintf(out, "%06"PRIx64"\t:", (uint64_t)(off+delta));
59 toff = off; 59 toff = off;
60 while (count < col && off < size) { 60 while (count < col && off < size) {
61 fprintf(out, "%02hhx ", (unsigned char)buf[off]); 61 fprintf(out, "%02hhx ", (unsigned char)buf[off]);
62 off++; count++; 62 off++; count++;
63 } 63 }