From 1fb0a998e1a8cb26a1f7fe1f79e2e3654aafdc93 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Sat, 26 Jan 2008 11:08:31 -0800 Subject: [PATCH] remove extra newline from perror() calls perror error adds a newline, so don't split error message across two lines. --- ip/ipaddress.c | 2 +- ip/ipneigh.c | 2 +- ip/iproute.c | 2 +- ip/xfrm_policy.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ip/ipaddress.c b/ip/ipaddress.c index d1c66204e..6dc61eba9 100644 --- a/ip/ipaddress.c +++ b/ip/ipaddress.c @@ -317,7 +317,7 @@ int print_linkinfo(const struct sockaddr_nl *who, 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; diff --git a/ip/ipneigh.c b/ip/ipneigh.c index db684f59a..b40de5b43 100644 --- a/ip/ipneigh.c +++ b/ip/ipneigh.c @@ -88,7 +88,7 @@ int nud_state_a2n(unsigned *state, char *arg) 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; diff --git a/ip/iproute.c b/ip/iproute.c index 7a885b0ce..685cb85fe 100644 --- a/ip/iproute.c +++ b/ip/iproute.c @@ -113,7 +113,7 @@ static struct 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; diff --git a/ip/xfrm_policy.c b/ip/xfrm_policy.c index 419ca67b4..b5e5c3fee 100644 --- a/ip/xfrm_policy.c +++ b/ip/xfrm_policy.c @@ -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) { - perror("Failed to send delete-all request\n"); + perror("Failed to send delete-all request"); exit(1); } if (show_stats > 1) -- 2.47.2