summaryrefslogtreecommitdiffstats
path: root/tests/common.c
diff options
context:
space:
mode:
authorChristopher Peplin <chris.peplin@rhubarbtech.com>2013-12-30 18:30:13 -0500
committerChristopher Peplin <chris.peplin@rhubarbtech.com>2013-12-30 18:30:13 -0500
commitbc7c0205d8dd7550060f6f0bbe8e2064d28ace8c (patch)
treebd68ac749b67fe0c5f592196e562600954417d51 /tests/common.c
parent368d36cc15b69882e9d21803f3b8aa7a1c97736e (diff)
Don't use debug function directly in library.
Diffstat (limited to 'tests/common.c')
-rw-r--r--tests/common.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/common.c b/tests/common.c
index 4c6a40ff..833a5ed4 100644
--- a/tests/common.c
+++ b/tests/common.c
@@ -46,7 +46,9 @@ void mock_set_timer(uint16_t time_ms, void (*callback)) {
void message_received(const IsoTpMessage* message) {
debug("Received ISO-TP message:");
message_was_received = true;
- log_isotp_message(message);
+ char str_message[24];
+ isotp_message_to_string(message, str_message, sizeof(str_message));
+ debug("%s", str_message);
last_message_received_arb_id = message->arbitration_id;
last_message_received_payload_size = message->size;
if(message->size > 0) {
@@ -60,7 +62,9 @@ void message_sent(const IsoTpMessage* message, const bool success) {
} else {
debug("Unable to send ISO-TP message:");
}
- log_isotp_message(message);
+ char str_message[24] = {0};
+ isotp_message_to_string(message, str_message, sizeof(str_message));
+ debug("%s", str_message);
last_message_sent_arb_id = message->arbitration_id;
last_message_sent_payload_size = message->size;