Always use six digits with leading 0s to format the microseconds in
trace log timestamps; otherwise a small value appears as too large of
a fraction of a second.
ticket: 8894 (new)
tags: pullup
target_version: 1.18-next
target_version: 1.17-next
goto cleanup;
if (krb5_crypto_us_timeofday(&sec, &usec) != 0)
goto cleanup;
- if (asprintf(&msg, "[%d] %u.%d: %s\n", (int) getpid(), (unsigned int) sec,
- (int) usec, str) < 0)
+ if (asprintf(&msg, "[%d] %u.%06d: %s\n", (int)getpid(),
+ (unsigned int)sec, (int)usec, str) < 0)
goto cleanup;
info.message = msg;
context->trace_callback(context, &info, context->trace_callback_data);