From 2908d6107920fb48e0c75045d38d2e5f314768ff Mon Sep 17 00:00:00 2001 From: deraadt Date: Sun, 22 Jun 1997 06:09:02 +0000 Subject: fix messages; like from jonny@gaia.coppe.ufrj.br --- usr.sbin/quotaon/quotaon.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'usr.sbin/quotaon') diff --git a/usr.sbin/quotaon/quotaon.c b/usr.sbin/quotaon/quotaon.c index 4579d6f5ec8..8e77faefeb6 100644 --- a/usr.sbin/quotaon/quotaon.c +++ b/usr.sbin/quotaon/quotaon.c @@ -42,7 +42,7 @@ static char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)quotaon.c 8.1 (Berkeley) 6/6/93";*/ -static char *rcsid = "$Id: quotaon.c,v 1.9 1997/06/04 04:18:37 dm Exp $"; +static char *rcsid = "$Id: quotaon.c,v 1.10 1997/06/22 06:09:02 deraadt Exp $"; #endif /* not lint */ /* @@ -171,12 +171,13 @@ quotaonoff(fs, offmode, type, qfpathname) return (1); } if (vflag) - printf("%s: quotas turned off\n", fs->fs_file); + printf("%s: %s quotas turned off\n", fs->fs_file, + qfextension[type]); return (0); } if (quotactl(fs->fs_file, QCMD(Q_QUOTAON, type), 0, qfpathname) < 0) { - fprintf(stderr, "quotaon: using %s on", qfpathname); - perror(fs->fs_file); + warn("%s: %s quotas using %s", fs->fs_file, + qfextension[type], qfpathname); return (1); } if (vflag) -- cgit v1.2.3-59-g8ed1b