diff options
author | pluknet <pluknet@FreeBSD.org> | 2011-01-13 16:29:27 +0000 |
---|---|---|
committer | pluknet <pluknet@FreeBSD.org> | 2011-01-13 16:29:27 +0000 |
commit | 393b39d5b3ea27996a36c627fd8ccab74bc90888 (patch) | |
tree | 759c72cf3f11ad4a04606cf6468180217590d487 /sys/ufs | |
parent | 564c9a855eee850b6f252549bbb5ec6af6ba778a (diff) | |
download | FreeBSD-src-393b39d5b3ea27996a36c627fd8ccab74bc90888.zip FreeBSD-src-393b39d5b3ea27996a36c627fd8ccab74bc90888.tar.gz |
Embed a quota error message (C string) into uprintf() fmt.
While here, fix whitespaces.
Approved by: kib (mentor)
Diffstat (limited to 'sys/ufs')
-rw-r--r-- | sys/ufs/ufs/ufs_quota.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/sys/ufs/ufs/ufs_quota.c b/sys/ufs/ufs/ufs_quota.c index a8909f9..5a02af3 100644 --- a/sys/ufs/ufs/ufs_quota.c +++ b/sys/ufs/ufs/ufs_quota.c @@ -238,9 +238,9 @@ chkdq(struct inode *ip, ufs2_daddr_t change, struct ucred *cred, int flags) dq->dq_flags |= DQ_MOD; DQI_UNLOCK(dq); if (warn) - uprintf("\n%s: warning, %s %s\n", - ITOV(ip)->v_mount->mnt_stat.f_mntonname, - quotatypes[i], "disk quota exceeded"); + uprintf("\n%s: warning, %s disk quota exceeded\n", + ITOV(ip)->v_mount->mnt_stat.f_mntonname, + quotatypes[i]); } return (0); } @@ -289,10 +289,10 @@ chkdqchg(struct inode *ip, ufs2_daddr_t change, struct ucred *cred, ip->i_uid == cred->cr_uid) { dq->dq_flags |= DQ_BLKS; DQI_UNLOCK(dq); - uprintf("\n%s: write failed, %s %s\n", + uprintf("\n%s: write failed, %s " + "disk quota exceeded for too long\n", ITOV(ip)->v_mount->mnt_stat.f_mntonname, - quotatypes[type], - "disk quota exceeded for too long"); + quotatypes[type]); return (EDQUOT); } DQI_UNLOCK(dq); @@ -384,9 +384,9 @@ chkiq(struct inode *ip, int change, struct ucred *cred, int flags) dq->dq_flags |= DQ_MOD; DQI_UNLOCK(dq); if (warn) - uprintf("\n%s: warning, %s %s\n", - ITOV(ip)->v_mount->mnt_stat.f_mntonname, - quotatypes[i], "inode quota exceeded"); + uprintf("\n%s: warning, %s inode quota exceeded\n", + ITOV(ip)->v_mount->mnt_stat.f_mntonname, + quotatypes[i]); } return (0); } @@ -434,10 +434,10 @@ chkiqchg(struct inode *ip, int change, struct ucred *cred, int type, int *warn) ip->i_uid == cred->cr_uid) { dq->dq_flags |= DQ_INODS; DQI_UNLOCK(dq); - uprintf("\n%s: write failed, %s %s\n", - ITOV(ip)->v_mount->mnt_stat.f_mntonname, - quotatypes[type], - "inode quota exceeded for too long"); + uprintf("\n%s: write failed, %s " + "inode quota exceeded for too long\n", + ITOV(ip)->v_mount->mnt_stat.f_mntonname, + quotatypes[type]); return (EDQUOT); } DQI_UNLOCK(dq); |