gsm0408_test.c: Don't pass negative value to strerror()

Change-Id: I4fcf24ec1bc974a3189486d2372b9713d7fdab70
Fixes: Coverity CID 135192
This commit is contained in:
Harald Welte 2016-11-26 15:08:00 +01:00
parent 1cd50585e9
commit c59e28fa5e
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}