perror error adds a newline, so don't split error message
across two lines.
static int flush_update(void)
{
if (rtnl_send(&rth, filter.flushb, filter.flushp) < 0) {
- perror("Failed to send flush request\n");
+ perror("Failed to send flush request");
return -1;
}
filter.flushp = 0;
static int flush_update(void)
{
if (rtnl_send(&rth, filter.flushb, filter.flushp) < 0) {
- perror("Failed to send flush request\n");
+ perror("Failed to send flush request");
return -1;
}
filter.flushp = 0;
static int flush_update(void)
{
if (rtnl_send(&rth, filter.flushb, filter.flushp) < 0) {
- perror("Failed to send flush request\n");
+ perror("Failed to send flush request");
return -1;
}
filter.flushp = 0;
}
if (rtnl_send(&rth, xb.buf, xb.offset) < 0) {
- perror("Failed to send delete-all request\n");
+ perror("Failed to send delete-all request");
exit(1);
}
if (show_stats > 1)