From 99884e40f1d84e42e11fc26cffbbe93af8d69671 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Wed, 11 Nov 2020 09:38:06 +0900 Subject: [PATCH] examples/buttons/buttons_main.c: Fix a printf format warning --- examples/buttons/buttons_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */