arehbein has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-upf/+/31970 )
Change subject: osmo-pfcp-tool: Fix call to strerror ......................................................................
osmo-pfcp-tool: Fix call to strerror
Fixes: Coverity scan CID#307499 Change-Id: I91a4116e7cf3721771cea3af82328cf02f1cfc14 --- M src/osmo-pfcp-tool/pfcp_tool_vty.c 1 file changed, 11 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-upf refs/changes/70/31970/1
diff --git a/src/osmo-pfcp-tool/pfcp_tool_vty.c b/src/osmo-pfcp-tool/pfcp_tool_vty.c index dd76f9e..57968ef 100644 --- a/src/osmo-pfcp-tool/pfcp_tool_vty.c +++ b/src/osmo-pfcp-tool/pfcp_tool_vty.c @@ -99,7 +99,7 @@ if (rc) { vty_out(vty, "Failed to bind PFCP endpoint on %s: %s%s\n", osmo_sockaddr_to_str_c(OTC_SELECT, osmo_pfcp_endpoint_get_local_addr(g_pfcp_tool->ep)), - strerror(rc), VTY_NEWLINE); + strerror(-rc), VTY_NEWLINE); return CMD_WARNING; } return CMD_SUCCESS;