summaryrefslogtreecommitdiffstats
path: root/xlators/debug
diff options
context:
space:
mode:
authorKrutika Dhananjay <kdhananj@redhat.com>2016-03-24 20:43:05 +0530
committerJeff Darcy <jdarcy@redhat.com>2016-03-29 05:49:59 -0700
commit516db811a3bc1b3e778c383fc18aa5eb56342f77 (patch)
treea7eca3fc6455e0fe5e276971cf3391b667a1580f /xlators/debug
parentd0cb21b5e3dd90a851e43bcfac9b1b2edf3db9c2 (diff)
debug/trace: Print {acm}times as integers
This helps in debugging issues with mtime, ctime etc. Change-Id: I4a0335f17c6b40e6c627658e91f43989c3efca22 BUG: 1302948 Signed-off-by: Krutika Dhananjay <kdhananj@redhat.com> Reviewed-on: http://review.gluster.org/13826 Smoke: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Niels de Vos <ndevos@redhat.com> CentOS-regression: Gluster Build System <jenkins@build.gluster.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Diffstat (limited to 'xlators/debug')
-rw-r--r--xlators/debug/trace/src/trace.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/xlators/debug/trace/src/trace.c b/xlators/debug/trace/src/trace.c
index 5bbd07ad32a..c809254eb17 100644
--- a/xlators/debug/trace/src/trace.c
+++ b/xlators/debug/trace/src/trace.c
@@ -38,19 +38,19 @@ trace_stat_to_str(struct iatt *buf, char *str, size_t len)
gf_time_fmt (ctime_buf, sizeof ctime_buf, buf->ia_ctime,
gf_timefmt_dirent);
- snprintf (str, len,
- "gfid=%s ino=%"PRIu64", mode=%o, "
- "nlink=%"GF_PRI_NLINK", uid=%u, "
- "gid=%u, size=%"PRIu64", "
- "blocks=%"PRIu64", atime=%s, "
- "mtime=%s, ctime=%s",
- uuid_utoa (buf->ia_gfid),
- buf->ia_ino,
- st_mode_from_ia (buf->ia_prot, buf->ia_type),
- buf->ia_nlink, buf->ia_uid,
- buf->ia_gid, buf->ia_size,
- buf->ia_blocks, atime_buf,
- mtime_buf, ctime_buf);
+ snprintf (str, len, "gfid=%s ino=%"PRIu64", mode=%o, "
+ "nlink=%"GF_PRI_NLINK", uid=%u, gid=%u, size=%"PRIu64", "
+ "blocks=%"PRIu64", atime=%s mtime=%s ctime=%s "
+ "atime_sec=%"PRIu32", atime_nsec=%"PRIu32","
+ " mtime_sec=%"PRIu32", mtime_nsec=%"PRIu32", "
+ "ctime_sec=%"PRIu32", ctime_nsec=%"PRIu32"",
+ uuid_utoa (buf->ia_gfid), buf->ia_ino,
+ st_mode_from_ia (buf->ia_prot, buf->ia_type), buf->ia_nlink,
+ buf->ia_uid, buf->ia_gid, buf->ia_size, buf->ia_blocks,
+ atime_buf, mtime_buf, ctime_buf,
+ buf->ia_atime, buf->ia_atime_nsec,
+ buf->ia_mtime, buf->ia_mtime_nsec,
+ buf->ia_ctime, buf->ia_ctime_nsec);
}