summaryrefslogtreecommitdiff
path: root/sys/miscfs
diff options
context:
space:
mode:
authorStefan Fritsch <sf@cvs.openbsd.org>2013-10-01 20:15:58 +0000
committerStefan Fritsch <sf@cvs.openbsd.org>2013-10-01 20:15:58 +0000
commit78fed2d74d047c4635326003573ee6d659bea5ef (patch)
treeabcd91760773729dc240de0d7cd94333d83f3317 /sys/miscfs
parent8adfe2babdf95fd0defba54986764479c69bbd69 (diff)
Format string fixes: Cast time_t to long long
and mnt_stat.f_ctime is long long, too
Diffstat (limited to 'sys/miscfs')
-rw-r--r--sys/miscfs/procfs/procfs_status.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/miscfs/procfs/procfs_status.c b/sys/miscfs/procfs/procfs_status.c
index dde79b0c5ae..a077558f7fe 100644
--- a/sys/miscfs/procfs/procfs_status.c
+++ b/sys/miscfs/procfs/procfs_status.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: procfs_status.c,v 1.14 2013/07/03 15:26:03 sf Exp $ */
+/* $OpenBSD: procfs_status.c,v 1.15 2013/10/01 20:15:56 sf Exp $ */
/* $NetBSD: procfs_status.c,v 1.11 1996/03/16 23:52:50 christos Exp $ */
/*
@@ -122,8 +122,9 @@ procfs_stat_gen(struct proc *p, char *s, int l)
COUNTORCAT(s, l, ps, n);
calcru(&pr->ps_tu, &ut, &st, (void *) 0);
- snprintf(ps, sizeof(ps), " %ld,%ld %ld,%ld",
- ut.tv_sec, ut.tv_usec, st.tv_sec, st.tv_usec);
+ snprintf(ps, sizeof(ps), " %lld,%ld %lld,%ld",
+ (long long)ut.tv_sec, ut.tv_usec,
+ (long long)st.tv_sec, st.tv_usec);
COUNTORCAT(s, l, ps, n);
snprintf(ps, sizeof(ps), " %s",