test/shmalloc.c: Format with clang-format
BRANCH=none
TEST=none
@@ -77,8 +77,7 @@ static int check_for_overlaps(void)
* multiple times to keep things simple.
*/
allocated_count = 0;
- for (allocced_buf = allocced_buf_chain;
- allocced_buf;
+ for (allocced_buf = allocced_buf_chain; allocced_buf;
allocced_buf = allocced_buf->next_buffer) {
int allocated_size, allocation_size;
@@ -117,8 +116,8 @@ static int check_for_overlaps(void)
}
}
if (allocations_count != allocated_count) {
- ccprintf("count mismatch (%d != %d)!\n",
- allocations_count, allocated_count);
+ ccprintf("count mismatch (%d != %d)!\n", allocations_count,
+ allocated_count);
return 0;
}
return 1;
@@ -229,8 +228,7 @@ void run_test(int argc, char **argv)
if (test_map & ~ALL_PATHS_MASK) {
ccprintf("Unexpected mask bits set: %x"
", counter %d\n",
- test_map & ~ALL_PATHS_MASK,
- counter);
+ test_map & ~ALL_PATHS_MASK, counter);
test_fail();
return;
}
@@ -269,8 +267,8 @@ void run_test(int argc, char **argv)
* modified.
*/
while (alloc_size--)
- shptr[alloc_size] =
- shptr[alloc_size] ^ 0xff;
+ shptr[alloc_size] = shptr[alloc_size] ^
+ 0xff;
if (!shmem_is_ok(__LINE__)) {
test_fail();
@@ -294,8 +292,8 @@ void run_test(int argc, char **argv)
}
}
- ccprintf("Did not pass all paths, map %x != %x\n",
- test_map, ALL_PATHS_MASK);
+ ccprintf("Did not pass all paths, map %x != %x\n", test_map,
+ ALL_PATHS_MASK);
test_fail();
}
