diff options
Diffstat (limited to 'src/shared')
-rw-r--r-- | src/shared/log.c | 2 | ||||
-rw-r--r-- | src/shared/util.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/shared/log.c b/src/shared/log.c index 92361b0cbc..69f23fead0 100644 --- a/src/shared/log.c +++ b/src/shared/log.c @@ -255,7 +255,7 @@ static int write_to_console( highlight = LOG_PRI(level) <= LOG_ERR && show_color; if (show_location) { - snprintf(location, sizeof(location), "(%s:%u) ", file, line); + snprintf(location, sizeof(location), "(%s:%i) ", file, line); char_array_0(location); IOVEC_SET_STRING(iovec[n++], location); } diff --git a/src/shared/util.h b/src/shared/util.h index 3f3d879a13..3fceb18841 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -62,7 +62,7 @@ #endif #if SIZEOF_TIME_T == 8 -# define PRI_TIME PRIu64 +# define PRI_TIME PRIi64 #elif SIZEOF_TIME_T == 4 # define PRI_TIME PRIu32 #else |