diff --git a/src/barebox-state.c b/src/barebox-state.c index f8b8df6..3e6c260 100644 --- a/src/barebox-state.c +++ b/src/barebox-state.c @@ -349,7 +349,7 @@ state = state_new_from_node(node, readonly); if (IS_ERR(state)) { pr_err("unable to initialize state: %s\n", - strerror(PTR_ERR(state))); + strerror(-PTR_ERR(state))); return ERR_CAST(state); }