mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-17 06:04:23 +03:00
cov: use long type for time_t calcs
Some for y38k - calculations can handle 64b time_t.
This commit is contained in:
parent
f443d16fd7
commit
8f091d3798
@ -928,8 +928,8 @@ void dm_event_log(const char *subsys, int level, const char *file,
|
|||||||
start = now;
|
start = now;
|
||||||
now -= start;
|
now -= start;
|
||||||
if (_debug_level)
|
if (_debug_level)
|
||||||
fprintf(stream, "[%2d:%02d] %8x:%-6s%s",
|
fprintf(stream, "[%2ld:%02ld] %8x:%-6s%s",
|
||||||
(int)now / 60, (int)now % 60,
|
(long)now / 60, (long)now % 60,
|
||||||
// TODO: Maybe use shorter ID
|
// TODO: Maybe use shorter ID
|
||||||
// ((int)(pthread_self()) >> 6) & 0xffff,
|
// ((int)(pthread_self()) >> 6) & 0xffff,
|
||||||
(int)pthread_self(), subsys,
|
(int)pthread_self(), subsys,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user