mirror of
https://github.com/ep00ch/lwip-contrib-mac.git
synced 2024-07-07 20:29:04 +00:00
Exterminate warnings. Changed 64 bit arith into 32 bit and output fmt from decimal to hex.
This commit is contained in:
parent
8cef35e840
commit
a606ea14a9
@ -41,11 +41,12 @@ perf_print(unsigned long c1l, unsigned long c1h,
|
||||
unsigned long c2l, unsigned long c2h,
|
||||
char *key)
|
||||
{
|
||||
unsigned long long start, end;
|
||||
|
||||
start = (unsigned long long)c2h << 32 | c2l;
|
||||
end = (unsigned long long)c1h << 32 | c1l;
|
||||
fprintf(f, "%s: %llu\n", key, start - end);
|
||||
unsigned long sub_ms, sub_ls;
|
||||
|
||||
sub_ms = c2h - c1h;
|
||||
sub_ls = c2l - c1l;
|
||||
if (c2l < c1l) sub_ms--;
|
||||
fprintf(f, "%s: %.8lu%.8lu\n", key, sub_ms, sub_ls);
|
||||
fflush(NULL);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user