summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPete Zaitcev <zaitcev@yahoo.com>2011-08-16 14:42:49 -0600
committerAnand Avati <avati@gluster.com>2011-10-18 03:24:48 -0700
commitc59dd30a13993b1988132de168f4f152757ff420 (patch)
treee37936d36dbb9378112eb85cadf6f7d2315e3ef0
parentfed29e0ae382ef24f4d3dff3623daefc57dab6ce (diff)
Print microseconds as a fraction.
Change-Id: I35cdf2c771974b9c51db47f24cd044ae014e52ce BUG: 3426 Reviewed-on: http://review.gluster.com/244 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Amar Tumballi <amar@gluster.com> Reviewed-by: Anand Avati <avati@gluster.com>
-rw-r--r--libglusterfs/src/logging.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libglusterfs/src/logging.h b/libglusterfs/src/logging.h
index e7815312801..01c45453534 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"