summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorschweikh <schweikh@FreeBSD.org>2002-08-24 11:03:48 +0000
committerschweikh <schweikh@FreeBSD.org>2002-08-24 11:03:48 +0000
commit21677e31d6be08c9d4d93b335791db08409471de (patch)
treef583e824e709354a9652ff7551933fd769cedfa6
parentf8c72c3e4b69c01611831b0f7e1d9d179fb78723 (diff)
downloadFreeBSD-src-21677e31d6be08c9d4d93b335791db08409471de.zip
FreeBSD-src-21677e31d6be08c9d4d93b335791db08409471de.tar.gz
Use "kbytes" instead of "blocks" in messages as this is really
what is calculated. PR: 41936 Submitted by: Lukas Ertl <le@univie.ac.at> MFC after: 1 week
-rw-r--r--usr.sbin/edquota/edquota.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/edquota/edquota.c b/usr.sbin/edquota/edquota.c
index 0e1a988..326c741 100644
--- a/usr.sbin/edquota/edquota.c
+++ b/usr.sbin/edquota/edquota.c
@@ -421,7 +421,7 @@ writeprivs(quplist, outfd, name, quotatype)
fprintf(fd, "Quotas for %s %s:\n", qfextension[quotatype], name);
for (qup = quplist; qup; qup = qup->next) {
fprintf(fd, "%s: %s %lu, limits (soft = %lu, hard = %lu)\n",
- qup->fsname, "blocks in use:",
+ qup->fsname, "kbytes in use:",
(unsigned long)(dbtob(qup->dqblk.dqb_curblocks) / 1024),
(unsigned long)(dbtob(qup->dqblk.dqb_bsoftlimit) / 1024),
(unsigned long)(dbtob(qup->dqblk.dqb_bhardlimit) / 1024));
@@ -472,7 +472,7 @@ readprivs(quplist, inname)
return (0);
}
cnt = sscanf(cp,
- " blocks in use: %lu, limits (soft = %lu, hard = %lu)",
+ " kbytes in use: %lu, limits (soft = %lu, hard = %lu)",
&curblocks, &bsoftlimit, &bhardlimit);
if (cnt != 3) {
warnx("%s:%s: bad format", fsp, cp);
OpenPOWER on IntegriCloud