diff options
author | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2014-02-14 10:44:03 -0500 |
---|---|---|
committer | Christopher Peplin <chris.peplin@rhubarbtech.com> | 2014-02-14 10:44:03 -0500 |
commit | 85c06482daca518981b2b0c1d5661b10a8d5c379 (patch) | |
tree | 2e8cf728209aa6e876fc0c2c9ea8072b856611d6 | |
parent | e961e6b49bc302988a0d6e47763a1f83e63ed065 (diff) |
Display mode in more recognizable hex format in log messages.
-rw-r--r-- | src/uds/uds.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; |