summaryrefslogtreecommitdiff
path: root/sbin/pfctl/pfctl.c
diff options
context:
space:
mode:
authorCamiel Dobbelaar <camield@cvs.openbsd.org>2012-09-19 15:52:18 +0000
committerCamiel Dobbelaar <camield@cvs.openbsd.org>2012-09-19 15:52:18 +0000
commit469f7c2cf97e7fa45f29a81b0ccbf4d3436722d5 (patch)
tree7f6038c1a623a7c856d434dce5af8ad738e79480 /sbin/pfctl/pfctl.c
parent3bc312edb6d9fed06aea01fd31bccf25730708f9 (diff)
Show which limit cannot be set. idea mikeb
ok mikeb henning beck
Diffstat (limited to 'sbin/pfctl/pfctl.c')
-rw-r--r--sbin/pfctl/pfctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pfctl/pfctl.c b/sbin/pfctl/pfctl.c
index 815ecba6c1c..a7b415867cb 100644
--- a/sbin/pfctl/pfctl.c
+++ b/sbin/pfctl/pfctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pfctl.c,v 1.313 2012/07/26 11:48:00 mikeb Exp $ */
+/* $OpenBSD: pfctl.c,v 1.314 2012/09/19 15:52:17 camield Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -1539,7 +1539,7 @@ pfctl_load_limit(struct pfctl *pf, unsigned int index, unsigned int limit)
if (errno == EBUSY)
warnx("Current pool size exceeds requested hard limit");
else
- warnx("DIOCSETLIMIT");
+ warnx("cannot set '%s' limit", pf_limits[index].name);
return (1);
}
return (0);