We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d51734 commit 33ff52dCopy full SHA for 33ff52d
samples/hello_arduino/src/app.cpp
@@ -16,14 +16,14 @@ void loop() {
16
size_t ret2;
17
ret1 = Serial.print(c);
18
ret2 = Serial.println("Hello, World!");
19
- printk("Sizes: %d %d\n", ret1, ret2);
+ printk("Sizes: %zd %zd\n", ret1, ret2);
20
Serial.println();
21
ret1 = Serial.print("My letter is: ");
22
ret2 = Serial.println(c);
23
24
25
char myString[] = "Will it print?";
26
ret1 = Serial.println(myString);
27
- printk("Size: %d \n\n\n", ret1);
+ printk("Size: %zd \n\n\n", ret1);
28
delay(1000); // 1 second delay
29
}
0 commit comments