Re: [PATCH] app/dumpcap: don't pass negative value to strerror() on error

2023-03-12 Thread Thomas Monjalon
07/02/2023 18:00, Stephen Hemminger: > If eth_stats_get fails (for example with -ENOTSUPP) then > dumpcap would pass that to strerror which is incorrect. > > Fixes: 8744f84bb255 ("app/dumpcap: add statistics mode") > Coverity issue: 383136 > Signed-off-by: Stephen Hemminger Changed the title to

[PATCH] app/dumpcap: don't pass negative value to strerror() on error

2023-02-07 Thread Stephen Hemminger
If eth_stats_get fails (for example with -ENOTSUPP) then dumpcap would pass that to strerror which is incorrect. Fixes: 8744f84bb255 ("app/dumpcap: add statistics mode") Coverity issue: 383136 Signed-off-by: Stephen Hemminger --- app/dumpcap/main.c | 2 +- 1 file changed, 1 insertion(+), 1 delet