Skip to content

Commit

Permalink
libbpf-tools: fix an error message
Browse files Browse the repository at this point in the history
A wrong argument (-errno) was passed to strerror, fix it.

Signed-off-by: Anton Protopopov <[email protected]>
  • Loading branch information
aspsk committed Jul 8, 2020
1 parent 57d10f5 commit b8cdd21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libbpf-tools/syscount.c
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ int main(int argc, char **argv)
}

if (signal(SIGINT, sig_int) == SIG_ERR) {
warn("can't set signal handler: %s\n", strerror(-errno));
warn("can't set signal handler: %s\n", strerror(errno));
goto cleanup_obj;
}

Expand Down

0 comments on commit b8cdd21

Please sign in to comment.