[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[virt-tools-list] [PATCH 4/4] Don't print (null) as user



---
 src/virt-viewer-app.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/virt-viewer-app.c b/src/virt-viewer-app.c
index c80d52f..6098b29 100644
--- a/src/virt-viewer-app.c
+++ b/src/virt-viewer-app.c
@@ -647,8 +647,10 @@ virt_viewer_app_activate(VirtViewerApp *self)
 		if (priv->port)
 			p = g_strdup_printf(":%d", priv->port);
 
-		virt_viewer_app_trace(self, "Setting up SSH tunnel via %s %s%s\n",
-				      priv->user, priv->host, p ? p : "");
+		virt_viewer_app_trace(self, "Setting up SSH tunnel via %s%s%s%s\n",
+				      priv->user ? priv->user : "",
+				      priv->user ? "@" : "",
+				      priv->host, p ? p : "");
 		g_free(p);
 
 		if ((fd = virt_viewer_app_open_tunnel_ssh(priv->host, priv->port,
-- 
1.7.5.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]