if(new_format == can_message_format_t::STANDARD || new_format == can_message_format_t::EXTENDED || new_format == can_message_format_t::INVALID)
format_ = new_format;
else
- ERROR(binder_interface, "%s: Can set format, wrong format chosen", __FUNCTION__);
+ ERROR("Can set format, wrong format chosen");
}
/// @brief Take a canfd_frame struct to initialize class members
switch(nbytes)
{
case CANFD_MTU:
- DEBUG(binder_interface, "%s: Got an CAN FD frame", __FUNCTION__);
+ DEBUG("Got an CAN FD frame");
maxdlen = CANFD_MAX_DLEN;
break;
case CAN_MTU:
- DEBUG(binder_interface, "%s: Got a legacy CAN frame", __FUNCTION__);
+ DEBUG("Got a legacy CAN frame");
maxdlen = CAN_MAX_DLEN;
break;
default:
- ERROR(binder_interface, "%s: unsupported CAN frame", __FUNCTION__);
+ ERROR("unsupported CAN frame");
break;
}
data.push_back(frame.data[i]);
};
- DEBUG(binder_interface, "%s: Found id: %X, format: %X, length: %X, data %02X%02X%02X%02X%02X%02X%02X%02X", __FUNCTION__,
+ DEBUG("Found id: %X, format: %X, length: %X, data %02X%02X%02X%02X%02X%02X%02X%02X",
id, (uint8_t)format, length, data[0], data[1], data[2], data[3], data[4], data[5], data[6], data[7]);
}
if(nbytes <= CAN_MTU)
{
- DEBUG(binder_interface, "%s: Got a legacy CAN frame", __FUNCTION__);
+ DEBUG("Got a legacy CAN frame");
maxdlen = CAN_MAX_DLEN;
}
else
{
- ERROR(binder_interface, "%s: unsupported CAN frame", __FUNCTION__);
+ ERROR("unsupported CAN frame");
}
if (frame.can_id & CAN_ERR_FLAG)
data.push_back(frame.data[i]);
};
-// DEBUG(binder_interface, "%s: Found id: %X, format: %X, length: %X, data %02X%02X%02X%02X%02X%02X%02X%02X", __FUNCTION__,
+// DEBUG("Found id: %X, format: %X, length: %X, data %02X%02X%02X%02X%02X%02X%02X%02X",
// id, (uint8_t)format, length, data[0], data[1], data[2], data[3], data[4], data[5], data[6], data[7]);
}
::memcpy(frame.data, get_data(), length_);
}
else
- ERROR(binder_interface, "%s: can_message_t not correctly initialized to be sent", __FUNCTION__);
+ ERROR("can_message_t not correctly initialized to be sent");
return frame;
}
::memcpy(frame.data, get_data(), length_);
}
else
- ERROR(binder_interface, "%s: can_message_t not correctly initialized to be sent", __FUNCTION__);
+ ERROR("can_message_t not correctly initialized to be sent");
return frame;
}