mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-16 18:13:49 +01:00
lint: tests: fix improper use of format specifiers
This commit is contained in:
parent
eff4f30640
commit
12d0c5bbf2
@ -42,11 +42,11 @@ int main(void)
|
|||||||
|
|
||||||
/* create random numbers */
|
/* create random numbers */
|
||||||
for (unsigned i = 1; i <= LIMIT; i++) {
|
for (unsigned i = 1; i <= LIMIT; i++) {
|
||||||
printf("generating %i random byte(s)\n", i);
|
printf("generating %u random byte(s)\n", i);
|
||||||
unsigned count = random_read(buf, i);
|
unsigned count = random_read(buf, i);
|
||||||
|
|
||||||
if (count != i) {
|
if (count != i) {
|
||||||
printf("Error generating random bytes, got %i instead of %i", count, i);
|
printf("Error generating random bytes, got %u instead of %u", count, i);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user