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; }