From c59dd30a13993b1988132de168f4f152757ff420 Mon Sep 17 00:00:00 2001 From: Pete Zaitcev Date: Tue, 16 Aug 2011 14:42:49 -0600 Subject: Print microseconds as a fraction. Change-Id: I35cdf2c771974b9c51db47f24cd044ae014e52ce BUG: 3426 Reviewed-on: http://review.gluster.com/244 Tested-by: Gluster Build System Reviewed-by: Amar Tumballi Reviewed-by: Anand Avati --- libglusterfs/src/logging.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libglusterfs/src') diff --git a/libglusterfs/src/logging.h b/libglusterfs/src/logging.h index e78153128..01c454535 100644 --- a/libglusterfs/src/logging.h +++ b/libglusterfs/src/logging.h @@ -33,12 +33,12 @@ #define GF_PRI_FSBLK "u" #define GF_PRI_DEV PRId32 #define GF_PRI_NLINK PRIu16 -#define GF_PRI_SUSECONDS PRId32 +#define GF_PRI_SUSECONDS "06d" #else #define GF_PRI_FSBLK PRIu64 #define GF_PRI_DEV PRIu64 #define GF_PRI_NLINK PRIu32 -#define GF_PRI_SUSECONDS "ld" +#define GF_PRI_SUSECONDS "06ld" #endif #define GF_PRI_BLKSIZE PRId32 #define GF_PRI_SIZET "zu" -- cgit