From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41144) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzzMu-0000bS-03 for qemu-devel@nongnu.org; Tue, 02 Jun 2015 23:29:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YzzMt-0000R8-4X for qemu-devel@nongnu.org; Tue, 02 Jun 2015 23:29:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33670) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YzzMt-0000Qy-04 for qemu-devel@nongnu.org; Tue, 02 Jun 2015 23:29:27 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (Postfix) with ESMTPS id AC02319F21E for ; Wed, 3 Jun 2015 03:29:26 +0000 (UTC) From: Bandan Das Date: Tue, 2 Jun 2015 23:28:42 -0400 Message-Id: <1433302122-27397-5-git-send-email-bsd@redhat.com> In-Reply-To: <1433302122-27397-1-git-send-email-bsd@redhat.com> References: <1433302122-27397-1-git-send-email-bsd@redhat.com> Subject: [Qemu-devel] [PATCH v4 4/4] monitor: remove debug prints List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: armbru@redhat.com The preferred solution is to use tracepoints and there is good chance of bitrot with the debug prints not being enabled at compile time. Remove them. Suggested-by: Markus Armbruster Signed-off-by: Bandan Das --- monitor.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/monitor.c b/monitor.c index cbc3cc6..44bd787 100644 --- a/monitor.c +++ b/monitor.c @@ -81,9 +81,6 @@ #endif #include "hw/lm32/lm32_pic.h" -//#define DEBUG -//#define DEBUG_COMPLETION - /* * Supported types: * @@ -3700,9 +3697,6 @@ static const mon_cmd_t *monitor_parse_command(Monitor *mon, const mon_cmd_t *cmd; char cmdname[256]; -#ifdef DEBUG - monitor_printf(mon, "command='%s', start='%c'\n", cmdline, **cmdp); -#endif /* extract the command name */ p = get_command_name(*cmdp, cmdname, sizeof(cmdname)); @@ -4207,10 +4201,7 @@ static void file_completion(Monitor *mon, const char *input) path[input_path_len] = '\0'; pstrcpy(file_prefix, sizeof(file_prefix), p + 1); } -#ifdef DEBUG_COMPLETION - monitor_printf(mon, "input='%s' path='%s' prefix='%s'\n", - input, path, file_prefix); -#endif + ffs = opendir(path); if (!ffs) return; @@ -4788,14 +4779,6 @@ static void monitor_find_completion(void *opaque, if (parse_cmdline(cmdline, &nb_args, args) < 0) { return; } -#ifdef DEBUG_COMPLETION - { - int i; - for (i = 0; i < nb_args; i++) { - monitor_printf(mon, "arg%d = '%s'\n", i, args[i]); - } - } -#endif /* if the line ends with a space, it means we want to complete the next arg */ -- 2.1.0