aboutsummaryrefslogtreecommitdiff
path: root/sbin/ipfw
diff options
context:
space:
mode:
authorAndrey V. Elsukov <ae@FreeBSD.org>2016-07-02 11:54:20 +0000
committerAndrey V. Elsukov <ae@FreeBSD.org>2016-07-02 11:54:20 +0000
commite62cd31f75260d781b44abbb4f21caf8471e44e4 (patch)
tree6633e91e57b3cbcc710b32d8e1eece8b6516b239 /sbin/ipfw
parentbf9363d72cf3c04da8385101441b37a9a9c20754 (diff)
downloadsrc-e62cd31f75260d781b44abbb4f21caf8471e44e4.tar.gz
src-e62cd31f75260d781b44abbb4f21caf8471e44e4.zip
Hide warning about non-existent lookup tables and informational messages
about modified table entry when quied mode enabled. Approved by: re (hrs) Obtained from: Yandex LLC
Notes
Notes: svn path=/head/; revision=302316
Diffstat (limited to 'sbin/ipfw')
-rw-r--r--sbin/ipfw/tables.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sbin/ipfw/tables.c b/sbin/ipfw/tables.c
index 2264e3218980..d14c9e92ed7c 100644
--- a/sbin/ipfw/tables.c
+++ b/sbin/ipfw/tables.c
@@ -914,9 +914,10 @@ table_modify_record(ipfw_obj_header *oh, int ac, char *av[], int add,
xi.vmask = vmask;
strlcpy(xi.tablename, oh->ntlv.name,
sizeof(xi.tablename));
- fprintf(stderr, "DEPRECATED: inserting data into "
- "non-existent table %s. (auto-created)\n",
- xi.tablename);
+ if (quiet == 0)
+ warnx("DEPRECATED: inserting data into "
+ "non-existent table %s. (auto-created)",
+ xi.tablename);
table_do_create(oh, &xi);
}
@@ -937,8 +938,6 @@ table_modify_record(ipfw_obj_header *oh, int ac, char *av[], int add,
error = table_do_modify_record(cmd, oh, tent_buf, count, atomic);
- quiet = 0;
-
/*
* Compatibility stuff: do not yell on duplicate keys or
* failed deletions.