diff options
author | bde <bde@FreeBSD.org> | 1999-08-08 13:43:51 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1999-08-08 13:43:51 +0000 |
commit | 557aa1ee53ce9f783d604f653ff424ffd2af9b18 (patch) | |
tree | b867c25c2ee993a7f417631672c4500e1b476359 /sys/miscfs | |
parent | f9b2b6fa722f186f7bfed2bae2460db659f160f8 (diff) | |
download | FreeBSD-src-557aa1ee53ce9f783d604f653ff424ffd2af9b18.zip FreeBSD-src-557aa1ee53ce9f783d604f653ff424ffd2af9b18.tar.gz |
Fixed printf format errors (%qu -> %llu; the arg was already unsigned long
long to hide problems on alphas).
Diffstat (limited to 'sys/miscfs')
-rw-r--r-- | sys/miscfs/procfs/procfs_rlimit.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/miscfs/procfs/procfs_rlimit.c b/sys/miscfs/procfs/procfs_rlimit.c index c735bed..07bcd10 100644 --- a/sys/miscfs/procfs/procfs_rlimit.c +++ b/sys/miscfs/procfs/procfs_rlimit.c @@ -36,7 +36,7 @@ * * @(#)procfs_status.c 8.4 (Berkeley) 6/15/94 * - * $Id: procfs_rlimit.c,v 1.1 1999/04/30 13:04:21 phk Exp $ + * $Id: procfs_rlimit.c,v 1.2 1999/07/09 17:56:59 peter Exp $ */ /* @@ -94,8 +94,7 @@ procfs_dorlimit(curp, p, pfs, uio) if (p->p_rlimit[i].rlim_cur == RLIM_INFINITY) { ps += sprintf(ps, "-1 "); } else { - /* quad_t is a long on the Alpha, sigh.. */ - ps += sprintf(ps, "%qu ", + ps += sprintf(ps, "%llu ", (unsigned long long)p->p_rlimit[i].rlim_cur); } @@ -106,8 +105,7 @@ procfs_dorlimit(curp, p, pfs, uio) if (p->p_rlimit[i].rlim_max == RLIM_INFINITY) { ps += sprintf(ps, "-1\n"); } else { - /* quad_t is a long on the Alpha, sigh.. */ - ps += sprintf(ps, "%qu\n", + ps += sprintf(ps, "%llu\n", (unsigned long long)p->p_rlimit[i].rlim_max); } } |