aboutsummaryrefslogtreecommitdiffstats
path: root/src/can-bus.cpp
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-03-02 22:21:31 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2017-03-02 22:21:31 +0100
commit3cefa7d43712f94c78dbbdff499b0a9a7645284b (patch)
tree1f654b7efb81d83484b0b45f7ec2aab9279fd46c /src/can-bus.cpp
parent3668abdfa5c5f27751216105c3ba7e018485563d (diff)
Clean and imrove log messages.
Change-Id: I77c74851ec436de0c7a7c47993badb7d1e2c01ca Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'src/can-bus.cpp')
-rw-r--r--src/can-bus.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/can-bus.cpp b/src/can-bus.cpp
index 631f609..efa6e7a 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());