From 7c459853317c24086019f4bbfb1b15b4c605a7b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sat, 5 Mar 2016 00:38:56 +0100 Subject: [PATCH] qrexec: hide timing debug messages in vm-file-editor Those are currently barely useful, since starting the application isn't the biggest bottleneck of DispVM. And since stderr is now visible on qvm-open-in-dvm output, not scare the user with it. --- qubes-rpc/vm-file-editor.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qubes-rpc/vm-file-editor.c b/qubes-rpc/vm-file-editor.c index 7ba7bb4..dbc7d2c 100644 --- a/qubes-rpc/vm-file-editor.c +++ b/qubes-rpc/vm-file-editor.c @@ -12,6 +12,7 @@ #define USER_HOME "/home/user" #define TMP_LOC "/tmp/qopen/" +// #define DEBUG static const char *cleanup_filename = NULL; @@ -154,7 +155,9 @@ main() perror("stat pre"); exit(1); } +#ifdef DEBUG fprintf(stderr, "time=%s, waiting for qubes-session\n", gettime()); +#endif // wait for X server to starts (especially in DispVM) if (stat("/tmp/qubes-session-env", &session_stat)) { switch (child = fork()) { @@ -183,7 +186,9 @@ main() } } } +#ifdef DEBUG fprintf(stderr, "time=%s, starting editor\n", gettime()); +#endif switch (child = fork()) { case -1: perror("fork");