extern UL_LOG_CUST(ulogd_fwp);
-#define FWP_DEBUG(fmt,args...) ul_logdeb("%s: " fmt, __func__ , ##args)
-#define FWP_ERROR(fmt,args...) ul_logerr("%s: " fmt, __func__ , ##args)
+#define FWP_DEBUG(fmt,args...) ul_logdeb("%s: " fmt "\n", __func__ , ##args)
+#define FWP_ERROR(fmt,args...) ul_logerr("%s: " fmt "\n", __func__ , ##args)
#endif
}
if (listen(fwp_epoint->sockd, fwp_epoint->attr.max_connections)){
- FWP_ERROR("Error on listen call: %s\n", strerror(errno));
+ FWP_ERROR("Error on listen call: %s", strerror(errno));
goto err;
}
&peer.addrlen);
if (csockd < 0) {
- FWP_ERROR("Error on accept: %s\n", strerror(errno));
+ FWP_ERROR("Error on accept: %s", strerror(errno));
return errno;
}
static struct sched_param param;
if ((maxpri = sched_get_priority_max(SCHED_FIFO)) == -1) {
- FWP_ERROR("sched_get_priority_max call failed: %s\n",
+ FWP_ERROR("sched_get_priority_max call failed: %s",
strerror(errno));
return -1;
}
if ((minpri = sched_get_priority_min(SCHED_FIFO)) == -1) {
- FWP_ERROR("sched_get_priority_min call failed: %s\n",
+ FWP_ERROR("sched_get_priority_min call failed: %s",
strerror(errno));
return -1;
}
can_send = (0 == __consume_budget(vres, msgb->len, false));
if (!can_send) {
fwp_msgb_free(msgb);
- FWP_ERROR("Cannot send queued packet (budget decreased?)\n");
+ FWP_ERROR("Cannot send queued packet (budget decreased?)");
return;
}
/* If we cannot send the whole queue, the flag will be set