mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
debug: compatibility with x32 ABI
Keep the conversion 64bit as on x32 arch time_t is 64bit value and we may loose precision (y2038). TODO: like use universal string for time printing as in log/log.c _set_time_prefix()
This commit is contained in:
parent
c8a5948a71
commit
0ec087e8b8
@ -928,8 +928,8 @@ void dm_event_log(const char *subsys, int level, const char *file,
|
||||
start = now;
|
||||
now -= start;
|
||||
if (_debug_level)
|
||||
fprintf(stream, "[%2ld:%02ld] %8x:%-6s%s",
|
||||
(long)now / 60, (long)now % 60,
|
||||
fprintf(stream, "[%2lld:%02lld] %8x:%-6s%s",
|
||||
(long long)now / 60, (long long)now % 60,
|
||||
// TODO: Maybe use shorter ID
|
||||
// ((int)(pthread_self()) >> 6) & 0xffff,
|
||||
(int)pthread_self(), subsys,
|
||||
|
Loading…
Reference in New Issue
Block a user