diff options
author | EuAndreh <eu@euandre.org> | 2024-05-24 20:45:54 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-05-24 20:59:27 -0300 |
commit | 48939391bdb9dd53ac2e664568e5991a9bc47543 (patch) | |
tree | c89d66e310e10e6de95f1fc45eb97a1e6c283c7b /tests/random.c | |
parent | src/vector.h: Add implementation and tests for vector_contains() (diff) | |
download | pindaiba-48939391bdb9dd53ac2e664568e5991a9bc47543.tar.gz pindaiba-48939391bdb9dd53ac2e664568e5991a9bc47543.tar.xz |
Remove all remaining calls to logerr() that included a trailing newline
Diffstat (limited to 'tests/random.c')
-rw-r--r-- | tests/random.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/random.c b/tests/random.c index e56e747..e670a28 100644 --- a/tests/random.c +++ b/tests/random.c @@ -16,7 +16,7 @@ test_urandom_bytes(void) { for (size_t n = 0; n < LEN; n++) { if (urandom_bytes(n, &arr)) { - logerr("urandom_bytes(n, &arr);\n"); + logerr("urandom_bytes()"); goto out; } for (size_t i = n; i < LEN; i++) { @@ -35,14 +35,14 @@ test_urandom_bytes(void) { uint8_t arr2[64 /* LEN */] = { 0 }; if (urandom_bytes(LEN, &arr1)) { - logerr("urandom_bytes(LEN, &arr1);\n"); + logerr("urandom_bytes()"); goto out; } const size_t attempts = 10; for (size_t n = 0; n < attempts; n++) { if (urandom_bytes(LEN, &arr2)) { - logerr("urandom_bytes(LEN, &arr2);\n"); + logerr("urandom_bytes()"); goto out; } assert(memcmp(arr1, arr2, LEN) != 0); @@ -61,7 +61,7 @@ main(void) { int rc = -1; if (test_urandom_bytes()) { - logerr("test_urandom_bytes();\n"); + logerr("test_urandom_bytes()"); goto out; } |