diff options
author | Zbigniew JÄdrzejewski-Szmek <zbyszek@in.waw.pl> | 2015-01-25 16:30:19 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2015-01-25 16:30:19 -0500 |
commit | d98458c3c486f80dbf43287fb6b285d4e3806444 (patch) | |
tree | f9767be2886d7d338af2ed15e887dc05a0de1ce7 /src/shared | |
parent | 3bbbd500c9ae7afe80540e95d8b3dfc15e20c8e1 (diff) |
Assorted format fixes
Types used for pids and uids in various interfaces are unpredictable.
Too bad.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
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 |