pq = (frescan_prio_queue_t *)malloc(sizeof(frescan_prio_queue_t));
if (pq == NULL) {
- ERROR("could not allocate memory for prio queue\n");
+ FRESCAN_ERROR("could not allocate memory for prio queue\n");
return NULL;
}
ret = sem_init (&pq->sem, 0, 0);
if (ret != 0) {
- ERROR("could not init the semaphore\n");
+ FRESCAN_ERROR("could not init the semaphore\n");
free(pq);
return NULL;
}
params->net);
if (queues->tx_fp_queue == NULL) {
- ERROR("could not allocate memory for tx fp queue\n");
+ FRESCAN_ERROR("could not allocate memory for tx fp queue\n");
return -1;
}
sizeof(frescan_prio_queue_t *));
if (queues->rx_channel_queues == NULL) {
- ERROR("could not allocate memory for receiving channels\n");
+ FRESCAN_ERROR
+ ("could not allocate memory for receiving channels\n");
return -1;
}
(max_prio, params->net);
if (queues->rx_channel_queues[i] == NULL) {
- ERROR("could not allocate memory for rx pq %d\n", i);
+ FRESCAN_ERROR
+ ("could not allocate memory for rx pq %d\n", i);
return -1;
}
}
int ret;
if (prio >= pqueue->max_prio) {
- ERROR("priority of the packet is too high\n");
+ FRESCAN_ERROR("priority of the packet is too high\n");
return -1;
}
int ret;
if (prio >= pqueue->max_prio) {
- ERROR("priority of the packet is too high\n");
+ FRESCAN_ERROR("priority of the packet is too high\n");
return -1;
}
server = &the_servers_pool[net][id];
if (list_empty(&server->packet_list.fifo_list)) {
- ERROR("no packet in server %d fifo list\n", id);
+ FRESCAN_ERROR("no packet in server %d fifo list\n", id);
return -1;
}