diff options
Diffstat (limited to 'common/printf.c')
-rw-r--r-- | common/printf.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/common/printf.c b/common/printf.c index dd66d3630a..baac4addf7 100644 --- a/common/printf.c +++ b/common/printf.c @@ -270,8 +270,7 @@ int vfnprintf(int (*addchar)(void *context, int c), void *context, if (ptrspec == 'T' && !IS_ENABLED(NO_UINT64_SUPPORT)) { flags |= PF_64BIT; - /* NULL uses the current time. */ - if (ptrval == NULL) + if (ptrval == PRINTF_TIMESTAMP_NOW) v = get_time().val; else v = *(uint64_t *)ptrval; |