Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/miscfs/procfs Use %ju and (intmax_t) to unbreak i386 build.



details:   https://anonhg.NetBSD.org/src/rev/60b3cb763b45
branches:  trunk
changeset: 826792:60b3cb763b45
user:      kre <kre%NetBSD.org@localhost>
date:      Fri Sep 29 17:27:26 2017 +0000

description:
Use %ju and (intmax_t) to unbreak i386 build.

diffstat:

 sys/miscfs/procfs/procfs_status.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (33 lines):

diff -r 98e33e25873c -r 60b3cb763b45 sys/miscfs/procfs/procfs_status.c
--- a/sys/miscfs/procfs/procfs_status.c Fri Sep 29 17:08:00 2017 +0000
+++ b/sys/miscfs/procfs/procfs_status.c Fri Sep 29 17:27:26 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: procfs_status.c,v 1.38 2017/09/29 12:57:05 christos Exp $      */
+/*     $NetBSD: procfs_status.c,v 1.39 2017/09/29 17:27:26 kre Exp $   */
 
 /*
  * Copyright (c) 1993
@@ -72,7 +72,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: procfs_status.c,v 1.38 2017/09/29 12:57:05 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: procfs_status.c,v 1.39 2017/09/29 17:27:26 kre Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -129,11 +129,11 @@
                ps += snprintf(ps, sizeof(psbuf) - (ps - psbuf), "\n");
 
                ps += snprintf(ps, sizeof(psbuf) - (ps - psbuf),
-                   "VmPeak:\t%8lu kB\n", p->p_rlimit[RLIMIT_DATA].rlim_cur / 1024);
+                   "VmPeak:\t%8ju kB\n", (intmax_t)p->p_rlimit[RLIMIT_DATA].rlim_cur / 1024);
                ps += snprintf(ps, sizeof(psbuf) - (ps - psbuf),
-                   "VmSize:\t%8lu kB\n", p->p_rlimit[RLIMIT_DATA].rlim_cur / 1024);
+                   "VmSize:\t%8ju kB\n", (intmax_t)p->p_rlimit[RLIMIT_DATA].rlim_cur / 1024);
                ps += snprintf(ps, sizeof(psbuf) - (ps - psbuf),
-                   "VmRSS:\t%8lu kB\n", p->p_rlimit[RLIMIT_RSS].rlim_cur / 1024);
+                   "VmRSS:\t%8ju kB\n", (intmax_t)p->p_rlimit[RLIMIT_RSS].rlim_cur / 1024);
 
        } else {
 /* comm pid ppid pgid sid maj,min ctty,sldr start ut st wmsg uid gid groups ... */



Home | Main Index | Thread Index | Old Index