remove extra newline from perror() calls
perror error adds a newline, so don't split error message across two lines.
This commit is contained in:
parent
aa8032e628
commit
1fb0a998e1
|
|
@ -317,7 +317,7 @@ int print_linkinfo(const struct sockaddr_nl *who,
|
||||||
static int flush_update(void)
|
static int flush_update(void)
|
||||||
{
|
{
|
||||||
if (rtnl_send(&rth, filter.flushb, filter.flushp) < 0) {
|
if (rtnl_send(&rth, filter.flushb, filter.flushp) < 0) {
|
||||||
perror("Failed to send flush request\n");
|
perror("Failed to send flush request");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
filter.flushp = 0;
|
filter.flushp = 0;
|
||||||
|
|
|
||||||
|
|
@ -88,7 +88,7 @@ int nud_state_a2n(unsigned *state, char *arg)
|
||||||
static int flush_update(void)
|
static int flush_update(void)
|
||||||
{
|
{
|
||||||
if (rtnl_send(&rth, filter.flushb, filter.flushp) < 0) {
|
if (rtnl_send(&rth, filter.flushb, filter.flushp) < 0) {
|
||||||
perror("Failed to send flush request\n");
|
perror("Failed to send flush request");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
filter.flushp = 0;
|
filter.flushp = 0;
|
||||||
|
|
|
||||||
|
|
@ -113,7 +113,7 @@ static struct
|
||||||
static int flush_update(void)
|
static int flush_update(void)
|
||||||
{
|
{
|
||||||
if (rtnl_send(&rth, filter.flushb, filter.flushp) < 0) {
|
if (rtnl_send(&rth, filter.flushb, filter.flushp) < 0) {
|
||||||
perror("Failed to send flush request\n");
|
perror("Failed to send flush request");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
filter.flushp = 0;
|
filter.flushp = 0;
|
||||||
|
|
|
||||||
|
|
@ -784,7 +784,7 @@ static int xfrm_policy_list_or_deleteall(int argc, char **argv, int deleteall)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rtnl_send(&rth, xb.buf, xb.offset) < 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);
|
exit(1);
|
||||||
}
|
}
|
||||||
if (show_stats > 1)
|
if (show_stats > 1)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue