diff --git a/examples/buttons/buttons_main.c b/examples/buttons/buttons_main.c index a658f6d3e..e019e5595 100644 --- a/examples/buttons/buttons_main.c +++ b/examples/buttons/buttons_main.c @@ -364,7 +364,7 @@ static int button_daemon(int argc, char *argv[]) oldsample = sample; #else - printf("Sample = %d\n", sample); + printf("Sample = %jd\n", (intmax_t)sample); #endif /* Make sure that everything is displayed */