obmc-console: Clean up invalid sign comparisons
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I83fae6857620ca2913952bea597c1299dd962620
diff --git a/test/test-config-parse-logsize.c b/test/test-config-parse-logsize.c
index 157401a..49aef3a 100644
--- a/test/test-config-parse-logsize.c
+++ b/test/test-config-parse-logsize.c
@@ -40,14 +40,15 @@
const size_t num_tests = sizeof(test_data) /
sizeof(struct test_parse_size_unit);
size_t size;
- int i, rc;
+ size_t i;
+ int rc;
for (i = 0; i < num_tests; i++) {
rc = config_parse_logsize(test_data[i].test_str, &size);
if ((rc == -1 && rc != test_data[i].expected_rc) ||
(rc == 0 && test_data[i].expected_size != size)) {
- warn("[%d] Str %s expected size %lu rc %d,"
+ warn("[%zu] Str %s expected size %lu rc %d,"
" got size %lu rc %d\n",
i,
test_data[i].test_str,