// 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;
}
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));
}
// Attempts to open a socket to CAN bus
::strcpy(ifr.ifr_name, device_name.c_str());
- DEBUG(binder_interface, "%s: ifr_name is : %s", __FUNCTION__, ifr.ifr_name);
+ DEBUG(binder_interface, "%s: BCM socket ifr_name is : %s", __FUNCTION__, ifr.ifr_name);
if(::ioctl(socket_, SIOCGIFINDEX, &ifr) < 0)
{
ERROR(binder_interface, "%s: ioctl failed. Error was : %s", __FUNCTION__, strerror(errno));