Skip to content

Commit 7ed67ab

Browse files
committed
Fix format string bug in the example
1 parent cb1f71b commit 7ed67ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

instruments/example/epoll.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ extern int my_epoll_wait_arm(int epfd, struct epoll_event *events, int maxevents
5656
*/
5757
static void my_log(char *msg)
5858
{
59-
log(msg)
59+
log("%s", msg)
6060
}
6161

6262
int my_epoll_wait(int epfd, struct epoll_event *events, int maxevents, int timeout)

0 commit comments

Comments
 (0)