From d50a5b40ff55a3fde150e77e3bd1dce5b24df46f Mon Sep 17 00:00:00 2001
From: Steffen Vogel <stvogel@eonerc.rwth-aachen.de>
Date: Tue, 31 Mar 2015 16:44:33 +0200
Subject: [PATCH] small cleanup

---
 server/src/path.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/server/src/path.c b/server/src/path.c
index c08810433..c5a253a4a 100644
--- a/server/src/path.c
+++ b/server/src/path.c
@@ -197,14 +197,16 @@ int path_print(struct path *p, char *buf, int len)
 {
 	*buf = 0;
 	
+	strap(buf, len, "%s " MAG("=>"), p->in->name);
+		
 	if (list_length(&p->destinations) > 1) {
-		strap(buf, len, "%s " MAG("=>") " [", p->in->name);
+		strap(buf, len " [");
 		FOREACH(&p->destinations, it)
 			strap(buf, len, " %s", it->node->name);
 		strap(buf, len, " ]");
 	}
 	else
-		strap(buf, len, "%s " MAG("=>") " %s", p->in->name, p->out->name);
+		strap(buf, len, " %s", p->out->name);
 	
 	return 0;
 }