Skip to content

Commit

Permalink
codacy: fix %d in string requires 'int' but argument is 'unsigned int'.
Browse files Browse the repository at this point in the history
in a few different files

Signed-off-by: Robin Getz <[email protected]>
  • Loading branch information
rgetz committed Apr 6, 2020
1 parent d7c6451 commit ebefefd
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/iio_adi_xflow_check.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ static struct iio_context *scan(void)
fprintf(stderr, "Multiple contexts found. Please select one using --uri:\n");

for (i = 0; i < (size_t) ret; i++) {
fprintf(stderr, "\t%d: %s [%s]\n", i,
fprintf(stderr, "\t%u: %s [%s]\n", i,
iio_context_info_get_description(info[i]),
iio_context_info_get_uri(info[i]));
}
Expand Down
2 changes: 1 addition & 1 deletion tests/iio_attr.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ static struct iio_context * autodetect_context(bool gen_code)
} else {
fprintf(stderr, "Multiple contexts found. Please select one using --uri:\n");
for (i = 0; i < (size_t) ret; i++) {
fprintf(stderr, "\t%d: %s [%s]\n",
fprintf(stderr, "\t%u: %s [%s]\n",
i, iio_context_info_get_description(info[i]),
iio_context_info_get_uri(info[i]));
}
Expand Down
4 changes: 2 additions & 2 deletions tests/iio_info.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ static void scan(void)
printf("Available contexts:\n");

for (i = 0; i < (size_t) ret; i++) {
printf("\t%d: %s [%s]\n", i,
printf("\t%u: %s [%s]\n", i,
iio_context_info_get_description(info[i]),
iio_context_info_get_uri(info[i]));
}
Expand Down Expand Up @@ -166,7 +166,7 @@ static struct iio_context * autodetect_context(void)
fprintf(stderr, "Multiple contexts found. Please select one using --uri:\n");

for (i = 0; i < (size_t) ret; i++) {
fprintf(stderr, "\t%d: %s [%s]\n", i,
fprintf(stderr, "\t%u: %s [%s]\n", i,
iio_context_info_get_description(info[i]),
iio_context_info_get_uri(info[i]));
}
Expand Down
2 changes: 1 addition & 1 deletion tests/iio_readdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ static struct iio_context *scan(void)
fprintf(stderr, "Multiple contexts found. Please select one using --uri:\n");

for (i = 0; i < (size_t) ret; i++) {
fprintf(stderr, "\t%d: %s [%s]\n", i,
fprintf(stderr, "\t%u: %s [%s]\n", i,
iio_context_info_get_description(info[i]),
iio_context_info_get_uri(info[i]));
}
Expand Down
2 changes: 1 addition & 1 deletion tests/iio_writedev.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ static struct iio_context *scan(void)
fprintf(stderr, "Multiple contexts found. Please select one using --uri:\n");

for (i = 0; i < (size_t) ret; i++) {
fprintf(stderr, "\t%d: %s [%s]\n", i,
fprintf(stderr, "\t%u: %s [%s]\n", i,
iio_context_info_get_description(info[i]),
iio_context_info_get_uri(info[i]));
}
Expand Down

0 comments on commit ebefefd

Please sign in to comment.