diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-02 22:21:31 +0100 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-03-02 22:21:31 +0100 |
commit | 3cefa7d43712f94c78dbbdff499b0a9a7645284b (patch) | |
tree | 1f654b7efb81d83484b0b45f7ec2aab9279fd46c | |
parent | 3668abdfa5c5f27751216105c3ba7e018485563d (diff) |
Clean and imrove log messages.
Change-Id: I77c74851ec436de0c7a7c47993badb7d1e2c01ca
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rw-r--r-- | src/can-bus.cpp | 8 | ||||
-rw-r--r-- | src/can-decoder.cpp | 1 |
2 files changed, 3 insertions, 6 deletions
diff --git a/src/can-bus.cpp b/src/can-bus.cpp index 631f6090..efa6e7ac 100644 --- a/src/can-bus.cpp +++ b/src/can-bus.cpp @@ -58,7 +58,6 @@ void can_bus_t::can_decode_message() decoder_t decoder; - DEBUG(binder_interface, "Beginning of decoding thread."); while(is_decoding_) { { @@ -101,7 +100,6 @@ void can_bus_t::can_event_push() openxc_SimpleMessage s_message; json_object* jo; - DEBUG(binder_interface, "Beginning of the pushing thread"); while(is_pushing_) { { @@ -240,11 +238,11 @@ can_message_t can_bus_t::next_can_message() { can_msg = can_message_q_.front(); can_message_q_.pop(); - DEBUG(binder_interface, "next_can_message: Here is the next can message : id %X, length %X", can_msg.get_id(), can_msg.get_length()); + DEBUG(binder_interface, "next_can_message: Here is the next can message : id %X, length %X, data %02X%02X%02X%02X%02X%02X%02X%02X", can_msg.get_id(), can_msg.get_length(), + can_msg.get_data()[0], can_msg.get_data()[1], can_msg.get_data()[2], can_msg.get_data()[3], can_msg.get_data()[4], can_msg.get_data()[5], can_msg.get_data()[6], can_msg.get_data()[7]); return can_msg; } - NOTICE(binder_interface, "next_can_message: End of can message queue"); has_can_message_ = false; return can_msg; } @@ -266,7 +264,6 @@ openxc_VehicleMessage can_bus_t::next_vehicle_message() return v_msg; } - NOTICE(binder_interface, "next_vehicle_message: End of vehicle message queue"); has_vehicle_message_ = false; return v_msg; } @@ -400,7 +397,6 @@ void can_bus_dev_t::can_reader(can_bus_t& can_bus) { can_message_t can_message; - DEBUG(binder_interface, "Beginning of reading thread"); while(is_running_) { can_message.convert_from_canfd_frame(read()); diff --git a/src/can-decoder.cpp b/src/can-decoder.cpp index bc4d0be7..5bc4642f 100644 --- a/src/can-decoder.cpp +++ b/src/can-decoder.cpp @@ -88,6 +88,7 @@ openxc_DynamicField decoder_t::translateSignal(CanSignal& signal, can_message_t& } float value = parseSignalBitfield(signal, message); + DEBUG(binder_interface, "Decoded message: %f", value); bool send = true; // Must call the decoders every time, regardless of if we are going to |