summaryrefslogtreecommitdiffstats
path: root/CAN-binder/low-can-binding/can
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-05-05 18:32:30 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-05-05 18:42:30 +0200
commitae74dbcb89f3d471b66e1f1d2fe4bdf33cfff388 (patch)
tree628d2750bab29a2b7ed42b359c81def729843764 /CAN-binder/low-can-binding/can
parent692376f019562e48ddef074b427f2397cae25087 (diff)
Improve log message.
Change-Id: I91155eda22a172efc88f72243c260480a2d1d4ce Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'CAN-binder/low-can-binding/can')
-rw-r--r--CAN-binder/low-can-binding/can/can-bus-dev.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/CAN-binder/low-can-binding/can/can-bus-dev.cpp b/CAN-binder/low-can-binding/can/can-bus-dev.cpp
index bc6f858..601881d 100644
--- a/CAN-binder/low-can-binding/can/can-bus-dev.cpp
+++ b/CAN-binder/low-can-binding/can/can-bus-dev.cpp
@@ -104,7 +104,7 @@ can_message_t can_bus_dev_t::read()
// Test that socket is really opened
if (!can_socket_)
{
- ERROR(binder_interface, "read: Socket unavailable. Closing thread.");
+ ERROR(binder_interface, "%s: Socket unavailable. Closing thread.", __FUNCTION__);
is_running_ = false;
}
@@ -114,8 +114,8 @@ can_message_t can_bus_dev_t::read()
if (nbytes != CANFD_MTU && nbytes != CAN_MTU)
{
if (errno == ENETDOWN)
- ERROR(binder_interface, "read: %s CAN device down", device_name_.c_str());
- ERROR(binder_interface, "read: Incomplete CAN(FD) frame");
+ ERROR(binder_interface, "%s: %s CAN device down", __FUNCTION__, device_name_.c_str());
+ ERROR(binder_interface, "%s: Incomplete CAN(FD) frame", __FUNCTION__);
::memset(&cfd, 0, sizeof(cfd));
}