mirror of
https://git.kernel.org/pub/scm/network/iproute2/iproute2.git
synced 2024-11-27 03:44:44 +08:00
tc/util: remove unused argument from print_tcstats2_attr
The function doesn't use the FILE handle. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: David Ahern <dsahern@kernel.org>
This commit is contained in:
parent
6879d2046b
commit
95c886b8e8
@ -396,7 +396,7 @@ static int tc_print_one_action(FILE *f, struct rtattr *arg, bool bind)
|
||||
print_string(PRINT_FP, NULL, "\tAction statistics:", NULL);
|
||||
print_nl();
|
||||
open_json_object("stats");
|
||||
print_tcstats2_attr(f, tb[TCA_ACT_STATS], "\t", NULL);
|
||||
print_tcstats2_attr(tb[TCA_ACT_STATS], "\t", NULL);
|
||||
close_json_object();
|
||||
print_nl();
|
||||
}
|
||||
|
@ -703,8 +703,7 @@ static void print_tcstats_basic_hw(struct rtattr **tbs, const char *prefix)
|
||||
print_uint(PRINT_ANY, "hw_packets", " %u pkt", bs_hw.packets);
|
||||
}
|
||||
|
||||
void print_tcstats2_attr(FILE *fp, struct rtattr *rta,
|
||||
const char *prefix, struct rtattr **xstats)
|
||||
void print_tcstats2_attr(struct rtattr *rta, const char *prefix, struct rtattr **xstats)
|
||||
{
|
||||
struct rtattr *tbs[TCA_STATS_MAX + 1];
|
||||
|
||||
@ -785,7 +784,7 @@ void print_tcstats_attr(FILE *fp, struct rtattr *tb[], const char *prefix,
|
||||
struct rtattr **xstats)
|
||||
{
|
||||
if (tb[TCA_STATS2]) {
|
||||
print_tcstats2_attr(fp, tb[TCA_STATS2], prefix, xstats);
|
||||
print_tcstats2_attr(tb[TCA_STATS2], prefix, xstats);
|
||||
if (xstats && !*xstats)
|
||||
goto compat_xstats;
|
||||
return;
|
||||
|
@ -91,8 +91,7 @@ char *sprint_linklayer(unsigned int linklayer, char *buf);
|
||||
|
||||
void print_tcstats_attr(FILE *fp, struct rtattr *tb[],
|
||||
const char *prefix, struct rtattr **xstats);
|
||||
void print_tcstats2_attr(FILE *fp, struct rtattr *rta,
|
||||
const char *prefix, struct rtattr **xstats);
|
||||
void print_tcstats2_attr(struct rtattr *rta, const char *prefix, struct rtattr **xstats);
|
||||
|
||||
int get_tc_classid(__u32 *h, const char *str);
|
||||
int print_tc_classid(char *buf, int len, __u32 h);
|
||||
|
Loading…
Reference in New Issue
Block a user