On Wed, Jan 23, 2019 at 12:43 PM Stephen Hemminger
<step...@networkplumber.org> wrote:
>
> On Tue, 22 Jan 2019 22:41:45 -0800
> Cong Wang <xiyou.wangc...@gmail.com> wrote:
>
> > +     if (tb[TCA_BASIC_PCNT]) {
> > +             if (RTA_PAYLOAD(tb[TCA_BASIC_PCNT])  < sizeof(*pf)) {
> > +                     fprintf(f, "Broken perf counters\n");
> > +                     return -1;
>
> Errors should go to stderr not f (which is stdout).

Ok, I copy the code from u32 filter, so it has the same issue.

Reply via email to