1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

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
This commit is contained in:
Andrey V. Elsukov 2016-07-02 11:54:20 +00:00
parent bf9363d72c
commit e62cd31f75
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=302316

View File

@ -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.