summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2016-11-26 15:04:39 +0100
committerHarald Welte <laforge@gnumonks.org>2016-11-26 17:10:29 +0100
commitc5c3a176f0ef275b19a2b00d7de405b27569f1c9 (patch)
tree62374580536e61592de8a5b3c922929580f13727
parent84562fe6a85a289d177f94e1539e80943b23f33f (diff)
cfg_bts_si2quater_neigh_add(): Don't call strerror() on negative value
Change-Id: I1300eede3f22df812b7e83902327ce4cde21aa35 Fixes: Coverity CID 135185
-rw-r--r--openbsc/src/libbsc/bsc_vty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/libbsc/bsc_vty.c b/openbsc/src/libbsc/bsc_vty.c
index 9ed19aa1f..007659199 100644
--- a/openbsc/src/libbsc/bsc_vty.c
+++ b/openbsc/src/libbsc/bsc_vty.c
@@ -2995,7 +2995,7 @@ DEFUN(cfg_bts_si2quater_neigh_add, cfg_bts_si2quater_neigh_add_cmd,
r = osmo_earfcn_add(e, arfcn, meas);
if (r < 0) {
- vty_out(vty, "Unable to add arfcn %u: %s%s", arfcn, strerror(r),
+ vty_out(vty, "Unable to add arfcn %u: %s%s", arfcn, strerror(-r),
VTY_NEWLINE);
return CMD_WARNING;
}