From 28aa4d992f577b4d255584f6a3f720411f9ef9c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Fri, 18 Oct 2013 03:47:58 +0200 Subject: [PATCH] qrexec: display VM name in connect timeout message (#723) Now it is possible, as we have domain name from cmdline. --- qrexec/qrexec-daemon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qrexec/qrexec-daemon.c b/qrexec/qrexec-daemon.c index 767d0fe..2f66a25 100644 --- a/qrexec/qrexec-daemon.c +++ b/qrexec/qrexec-daemon.c @@ -98,9 +98,9 @@ int ask_on_connect_timeout(int xid, int timeout) #define ZENITY_CMD "zenity --title 'Qrexec daemon' --question --text " snprintf(text, sizeof(text), "%s" - "'Timeout while trying connecting to qrexec agent (Xen domain ID: %d). Do you want to wait next %d seconds?'", + "'Timeout while trying connecting to qrexec agent of VM %s. Do you want to wait next %d seconds?'", ret==0 ? KDIALOG_CMD : ZENITY_CMD, - xid, timeout); + remote_domain_name, timeout); #undef KDIALOG_CMD #undef ZENITY_CMD ret = system(text);