]> rtime.felk.cvut.cz Git - frescor/fna.git/blobdiff - src_frescan/frescan_hw_buffer.c
changes to use the FRSH FSA module to do the analysis and spare capacity. TODO: finis...
[frescor/fna.git] / src_frescan / frescan_hw_buffer.c
index 40c50e90c88fd9da945977f74b8af0b6c723c9e6..3608cf59e2ef8d5341cb41d8b6de4804d759acd5 100644 (file)
@@ -74,7 +74,7 @@
 #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
@@ -97,7 +97,7 @@ int frescan_hw_buffer_abort(frescan_network_t net)
 
         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;
         }
 
@@ -159,7 +159,7 @@ int frescan_hw_buffer_update(frescan_network_t net)
                 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;
@@ -209,7 +209,7 @@ int frescan_hw_buffer_update(frescan_network_t net)
                     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;
         }