Exterminate warnings. Changed 64 bit arith into 32 bit and output fmt from decimal to hex.

This commit is contained in:
christiaans 2006-10-25 07:43:46 +00:00
parent 8cef35e840
commit a606ea14a9

View File

@ -41,11 +41,12 @@ perf_print(unsigned long c1l, unsigned long c1h,
unsigned long c2l, unsigned long c2h, unsigned long c2l, unsigned long c2h,
char *key) char *key)
{ {
unsigned long long start, end; unsigned long sub_ms, sub_ls;
start = (unsigned long long)c2h << 32 | c2l; sub_ms = c2h - c1h;
end = (unsigned long long)c1h << 32 | c1l; sub_ls = c2l - c1l;
fprintf(f, "%s: %llu\n", key, start - end); if (c2l < c1l) sub_ms--;
fprintf(f, "%s: %.8lu%.8lu\n", key, sub_ms, sub_ls);
fflush(NULL); fflush(NULL);
} }