From 85c06482daca518981b2b0c1d5661b10a8d5c379 Mon Sep 17 00:00:00 2001 From: Christopher Peplin Date: Fri, 14 Feb 2014 10:44:03 -0500 Subject: Display mode in more recognizable hex format in log messages. --- src/uds/uds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/uds/uds.c') diff --git a/src/uds/uds.c b/src/uds/uds.c index ff35b24a..f38c6aac 100644 --- a/src/uds/uds.c +++ b/src/uds/uds.c @@ -225,13 +225,13 @@ DiagnosticResponse diagnostic_receive_can_frame(DiagnosticShims* shims, if(message.size > 0) { response.mode = message.payload[0]; if(handle_negative_response(&message, &response, shims)) { - shims->log("Received a negative response to mode %d on arb ID 0x%x", + shims->log("Received a negative response to mode 0x%x on arb ID 0x%x", response.mode, response.arbitration_id); handle->success = true; handle->completed = true; } else if(handle_positive_response(handle, &message, &response, shims)) { - shims->log("Received a positive mode %d response on arb ID 0x%x", + shims->log("Received a positive mode 0x%x response on arb ID 0x%x", response.mode, response.arbitration_id); handle->success = true; handle->completed = true; -- cgit 1.2.3-korg