aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/tests/gsm0408/gsm0408_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbsc/tests/gsm0408/gsm0408_test.c')
-rw-r--r--openbsc/tests/gsm0408/gsm0408_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/tests/gsm0408/gsm0408_test.c b/openbsc/tests/gsm0408/gsm0408_test.c
index 9e7babb56..ae8cbdd0f 100644
--- a/openbsc/tests/gsm0408/gsm0408_test.c
+++ b/openbsc/tests/gsm0408/gsm0408_test.c
@@ -89,7 +89,7 @@ static inline void add_arfcn_b(struct osmo_earfcn_si2q *e, uint16_t earfcn,
{
int r = osmo_earfcn_add(e, earfcn, bw);
if (r)
- printf("failed to add EARFCN %u: %s\n", earfcn, strerror(r));
+ printf("failed to add EARFCN %u: %s\n", earfcn, strerror(-r));
else
printf("added EARFCN %u - ", earfcn);
}