tests: test-utils: Format with clang-format
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: I79dbb915a3f4b69a915efaea98a5de6732880875
diff --git a/.clang-ignore b/.clang-ignore
index cce45c5..585d96a 100644
--- a/.clang-ignore
+++ b/.clang-ignore
@@ -4,8 +4,6 @@
libmctp-serial.h
libmctp.h
serial.c
-tests/test-utils.c
-tests/test-utils.h
tests/test_bridge.c
tests/test_eid.c
tests/test_seq.c
diff --git a/tests/test-utils.c b/tests/test-utils.c
index d1a306c..fca1910 100644
--- a/tests/test-utils.c
+++ b/tests/test-utils.c
@@ -9,11 +9,11 @@
#include "test-utils.h"
struct mctp_binding_test {
- struct mctp_binding binding;
+ struct mctp_binding binding;
};
static int mctp_binding_test_tx(struct mctp_binding *b __attribute__((unused)),
- struct mctp_pktbuf *pkt __attribute__((unused)))
+ struct mctp_pktbuf *pkt __attribute__((unused)))
{
/* we are not expecting TX packets */
assert(0);
@@ -40,8 +40,8 @@
__mctp_free(test);
}
-void mctp_binding_test_rx_raw(struct mctp_binding_test *test,
- void *buf, size_t len)
+void mctp_binding_test_rx_raw(struct mctp_binding_test *test, void *buf,
+ size_t len)
{
struct mctp_pktbuf *pkt;
@@ -52,14 +52,13 @@
}
void mctp_binding_test_register_bus(struct mctp_binding_test *binding,
- struct mctp *mctp, mctp_eid_t eid)
+ struct mctp *mctp, mctp_eid_t eid)
{
mctp_register_bus(mctp, &binding->binding, eid);
}
void mctp_test_stack_init(struct mctp **mctp,
- struct mctp_binding_test **binding,
- mctp_eid_t eid)
+ struct mctp_binding_test **binding, mctp_eid_t eid)
{
*mctp = mctp_init();
assert(*mctp);
diff --git a/tests/test-utils.h b/tests/test-utils.h
index 4b000e1..88efc0f 100644
--- a/tests/test-utils.h
+++ b/tests/test-utils.h
@@ -12,17 +12,16 @@
struct mctp_binding_test *mctp_binding_test_init(void);
void mctp_binding_test_destroy(struct mctp_binding_test *test);
void mctp_binding_test_register_bus(struct mctp_binding_test *binding,
- struct mctp *mctp, mctp_eid_t eid);
+ struct mctp *mctp, mctp_eid_t eid);
/* internal test binding interface */
-void mctp_binding_test_rx_raw(struct mctp_binding_test *test,
- void *buf, size_t len);
+void mctp_binding_test_rx_raw(struct mctp_binding_test *test, void *buf,
+ size_t len);
/* gerneral utility functions */
/* create a MCTP stack, and add a test binding, using the specified EID */
void mctp_test_stack_init(struct mctp **mctp,
- struct mctp_binding_test **binding,
- mctp_eid_t eid);
+ struct mctp_binding_test **binding, mctp_eid_t eid);
#endif /* _MCTP_TESTS_TEST_UTILS_H */