diff --git a/examples/z_pub_shm.c b/examples/z_pub_shm.c index bb1f3453f..dd2bff9fd 100644 --- a/examples/z_pub_shm.c +++ b/examples/z_pub_shm.c @@ -91,7 +91,7 @@ int main(int argc, char **argv) { if (z_check(shm_buf)) { { uint8_t *buf = z_shm_mut_data_mut(z_loan_mut(shm_buf)); - sprintf((char*)buf, "SHM [%4d] %s", idx, value); + sprintf((char *)buf, "SHM [%4d] %s", idx, value); printf("Putting Data ('%s': '%s')...\n", keyexpr, buf); } diff --git a/tests/z_api_payload_test.c b/tests/z_api_payload_test.c index 4f5f6e4f5..1edae0125 100644 --- a/tests/z_api_payload_test.c +++ b/tests/z_api_payload_test.c @@ -128,14 +128,14 @@ void test_slice() { z_drop(z_move(out2)); } -#define TEST_ARITHMETIC(TYPE, EXT, VAL) \ - { \ - TYPE in = VAL, out; \ - z_owned_bytes_t payload; \ - z_bytes_serialize_from_##EXT(&payload, in); \ +#define TEST_ARITHMETIC(TYPE, EXT, VAL) \ + { \ + TYPE in = VAL, out; \ + z_owned_bytes_t payload; \ + z_bytes_serialize_from_##EXT(&payload, in); \ z_bytes_deserialize_into_##EXT(z_loan(payload), &out); \ - assert(in == out); \ - z_drop(z_move(payload)); \ + assert(in == out); \ + z_drop(z_move(payload)); \ } void test_arithmetic() {