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

Thomas Monjalon thomas at monjalon.net
Sun Mar 12 15:16:53 CET 2023


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 <stephen at networkplumber.org>

Changed the title to highlight the user facing change:
app/dumpcap: fix error message when getting statistics

Applied, thanks.




More information about the dev mailing list