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:
parent
d08d8c2ff3
commit
fbde243b6c
@ -914,9 +914,10 @@ table_modify_record(ipfw_obj_header *oh, int ac, char *av[], int add,
|
|||||||
xi.vmask = vmask;
|
xi.vmask = vmask;
|
||||||
strlcpy(xi.tablename, oh->ntlv.name,
|
strlcpy(xi.tablename, oh->ntlv.name,
|
||||||
sizeof(xi.tablename));
|
sizeof(xi.tablename));
|
||||||
fprintf(stderr, "DEPRECATED: inserting data into "
|
if (quiet == 0)
|
||||||
"non-existent table %s. (auto-created)\n",
|
warnx("DEPRECATED: inserting data into "
|
||||||
xi.tablename);
|
"non-existent table %s. (auto-created)",
|
||||||
|
xi.tablename);
|
||||||
table_do_create(oh, &xi);
|
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);
|
error = table_do_modify_record(cmd, oh, tent_buf, count, atomic);
|
||||||
|
|
||||||
quiet = 0;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Compatibility stuff: do not yell on duplicate keys or
|
* Compatibility stuff: do not yell on duplicate keys or
|
||||||
* failed deletions.
|
* failed deletions.
|
||||||
|
Loading…
Reference in New Issue
Block a user