diff --git a/sbin/quotacheck/quotacheck.8 b/sbin/quotacheck/quotacheck.8 index 41d9fc4b4018..b9bbdad2eafe 100644 --- a/sbin/quotacheck/quotacheck.8 +++ b/sbin/quotacheck/quotacheck.8 @@ -87,7 +87,7 @@ are to be checked. .It Fl v .Nm quotacheck reports discrepancies between the -calculated and recorded disk quotas. +calculated and recorded disk quotas and other additional diagnostic messages. .El .Pp Specifying both diff --git a/sbin/quotacheck/quotacheck.c b/sbin/quotacheck/quotacheck.c index 465aa881f44c..913e381d9560 100644 --- a/sbin/quotacheck/quotacheck.c +++ b/sbin/quotacheck/quotacheck.c @@ -512,8 +512,12 @@ addid(id, type, name) highid[type] = id; if (name) bcopy(name, fup->fu_name, len + 1); - else - (void)sprintf(fup->fu_name, "%u", id); + else { + (void)sprintf(fup->fu_name, "%lu", id); + if (vflag) + printf("unknown %cid: %lu\n", + type == USRQUOTA ? 'u' : 'g', id); + } return (fup); }