summaryrefslogtreecommitdiff
path: root/tests/lib/test_zlog.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/test_zlog.c')
-rw-r--r--tests/lib/test_zlog.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/lib/test_zlog.c b/tests/lib/test_zlog.c
index 790e65cfe9..07885d9847 100644
--- a/tests/lib/test_zlog.c
+++ b/tests/lib/test_zlog.c
@@ -34,12 +34,14 @@ static bool test_zlog_hexdump(void)
unsigned int nl = 1;
do {
- long d[nl];
+ uint8_t d[nl];
for (unsigned int i = 0; i < nl; i++)
d[i] = random();
- zlog_hexdump(d, nl * sizeof(long));
- } while (++nl * sizeof(long) <= MAXDATA);
+ zlog_hexdump(d, nl - 1);
+
+ nl += 1 + (nl / 2);
+ } while (nl <= MAXDATA);
return true;
}