xt_quota2: reduce printf complexity

This commit is contained in:
Jan Engelhardt
2010-05-13 15:39:29 +02:00
parent a46ca95078
commit db717ec479

View File

@@ -153,15 +153,13 @@ static int quota_mt2_check(const struct xt_mtchk_param *par)
q->name[sizeof(q->name)-1] = '\0';
if (*q->name == '.' || strchr(q->name, '/') != NULL) {
printk(KERN_ERR "xt_quota<%u>: illegal name\n",
par->match->revision);
printk(KERN_ERR "xt_quota.3: illegal name\n");
return -EINVAL;
}
q->master = q2_get_counter(q);
if (q->master == NULL) {
printk(KERN_ERR "xt_quota<%u>: memory alloc failure\n",
par->match->revision);
printk(KERN_ERR "xt_quota.3: memory alloc failure\n");
return -ENOMEM;
}