From 36819dbad98289a70ede50de028ebbede693dcdc Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Fri, 13 Nov 2020 15:21:27 +0900 Subject: [PATCH] system/lm75/lm75.c: Fix a printf format warning --- system/lm75/lm75.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/lm75/lm75.c b/system/lm75/lm75.c index 3fbb9f659..79ee55d96 100644 --- a/system/lm75/lm75.c +++ b/system/lm75/lm75.c @@ -236,8 +236,8 @@ int main(int argc, FAR char *argv[]) if (nbytes != sizeof(b16_t)) { - fprintf(stderr, "ERROR: Unexpected read size: %Ld vs %d\n", - (long)nbytes, sizeof(b16_t)); + fprintf(stderr, "ERROR: Unexpected read size: %zd vs %zd\n", + nbytes, sizeof(b16_t)); return EXIT_FAILURE; }