shell-test: fix REP for count larger than uint8_t (#10581)

This commit is contained in:
Daniel Hahler 2019-07-22 20:49:45 +02:00 committed by GitHub
parent 324dc0dbc0
commit d7274f2417
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,8 +76,8 @@ int main(int argc, char **argv)
fprintf(stderr, "Invalid count: %s\n", argv[2]);
return 4;
}
for (uint8_t i = 0; i < count; i++) {
printf("%d: %s\n", (int) i, argv[3]);
for (int i = 0; i < count; i++) {
printf("%d: %s\n", i, argv[3]);
fflush(stdout);
usleep(1000); // Wait 1 ms (simulate typical output).
}