ip: print mpls errors on stderr

Error messages should go on stderr.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
Stephen Hemminger 2022-12-12 08:37:40 -08:00
parent 523692fa17
commit 6c9940eca1

View File

@ -1628,7 +1628,7 @@ static void print_af_stats_attr(FILE *fp, int ifindex, struct rtattr *attr)
print_mpls_stats(fp, i);
break;
default:
fprintf(fp, " unknown af(%d)\n", i->rta_type);
fprintf(stderr, " unknown af(%d)\n", i->rta_type);
break;
}
}