#include <string.h> // memcpy
#include "frescan_data.h" // the_networks
-#include "frescan_debug.h" // DEBUG, ERROR
+#include "frescan_debug.h" // DEBUG, FRESCAN_ERROR
#include "frescan_servers.h" // frescan_servers_get_highest_prio
#include "frescan_queues.h" // frescan_pqueue_xxx, frescan_servers_dequeue
#include "frescan_id.h" // frescan_id_set_field
ret = ioctl(the_networks[net].fd, CAN_IOCTL_ABORT_FRAME, NULL);
if (ret == -1) {
- ERROR ("could not abort the frame\n");
+ FRESCAN_ERROR ("could not abort the frame\n");
return -1;
}
DEBUG(FRESCAN_HW_BUFFER_ENABLE_DEBUG,"abort frame\n");
ret = frescan_hw_buffer_abort(net);
if (ret != 0) {
- ERROR ("could not abort frame\n");
+ FRESCAN_ERROR ("could not abort frame\n");
return ret;
}
return 0;
sizeof(struct can_frame_t));
if (ret != sizeof(struct can_frame_t)) {
- ERROR ("could not send frame\n");
+ FRESCAN_ERROR ("could not send frame\n");
return ret;
}