Don't mix output and errors.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
if (q && q->print_copt)
q->print_copt(q, fp, tb[TCA_OPTIONS]);
else
- fprintf(fp, "[cannot parse class parameters]");
+ fprintf(stderr, "[cannot parse class parameters]");
}
fprintf(fp, "\n");
if (show_stats) {
}
if (n->nlmsg_type != NLMSG_ERROR && n->nlmsg_type != NLMSG_NOOP &&
n->nlmsg_type != NLMSG_DONE) {
- fprintf(fp, "Unknown message: length %08d type %08x flags %08x\n",
+ fprintf(stderr, "Unknown message: length %08d type %08x flags %08x\n",
n->nlmsg_len, n->nlmsg_type, n->nlmsg_flags);
}
return 0;