Patchwork Add missing linefeed in error message

login
register
mail settings
Submitter Stefan Weil
Date Aug. 8, 2009, 9:33 p.m.
Message ID <1249767206-9802-1-git-send-email-weil@mail.berlios.de>
Download mbox | patch
Permalink /patch/31000/
State Superseded
Headers show

Comments

Stefan Weil - Aug. 8, 2009, 9:33 p.m.
From: Stefan Weil <stefan@weilnetz.de>

The error message for an unknown network device given to
monitor command set_link looks better with a terminating
linefeed.

Signed-off-by: Stefan Weil <weil@mail.berlios.de>
---
 net.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/net.c b/net.c
index b5e8c9f..85f3727 100644
--- a/net.c
+++ b/net.c
@@ -2917,7 +2917,7 @@  int do_set_link(Monitor *mon, const char *name, const char *up_or_down)
 done:
 
     if (!vc) {
-        monitor_printf(mon, "could not find network device '%s'", name);
+        monitor_printf(mon, "could not find network device '%s'\n", name);
         return 0;
     }