From patchwork Tue Jul 31 18:58:23 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Salar Ali Mumtaz X-Patchwork-Id: 1261591 Return-Path: X-Original-To: patchwork-linux-kbuild@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id D97533FC1A for ; Tue, 31 Jul 2012 18:58:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752701Ab2GaS6h (ORCPT ); Tue, 31 Jul 2012 14:58:37 -0400 Received: from mail-wg0-f42.google.com ([74.125.82.42]:41370 "EHLO mail-wg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752557Ab2GaS6g (ORCPT ); Tue, 31 Jul 2012 14:58:36 -0400 Received: by wgbfm10 with SMTP id fm10so3618678wgb.1 for ; Tue, 31 Jul 2012 11:58:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=KutD/hExICty7L0A9Xu+vUXh7Kev3A/ocetK3UOnpCE=; b=fLM0ZpghX7u5a+2nsNvho69AT8WcTo4SSmuuj6loRNIn4pGzCCu5+vsU0dn9RvsCTl lYoSeMByfcl9hvaxmg3aB2p+4adZPVUTl1vGxhnbu/6HMjPcHyay+1tnp3hAtKwqczgK i3HOZo8fiaEZEVRC+Nn+7ygNdQIf5Ui1TxzEjm+oqUqV7UZEEC/mpBs+5fy1hFzkL5sv qdI5EPq6oML4n7+bKK1XTAhoV1KJE9aFf2e0A9P114jp034wTxAElrbcTJIQCyLbrTho qRggHUA921wosO1y9D8qR1Z23uA+oTmm2RpSPnTbTommIg/+ypPemPTAO4FwLsuZyyfa ACdQ== Received: by 10.50.217.193 with SMTP id pa1mr1612580igc.39.1343761114327; Tue, 31 Jul 2012 11:58:34 -0700 (PDT) Received: from [10.4.205.103] (75-119-226-240.dsl.teksavvy.com. [75.119.226.240]) by mx.google.com with ESMTPS id nh8sm12919752igc.1.2012.07.31.11.58.32 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 31 Jul 2012 11:58:33 -0700 (PDT) Message-ID: <50182ACF.6070704@gmail.com> Date: Tue, 31 Jul 2012 14:58:23 -0400 From: Salar Ali Mumtaz User-Agent: Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120714 Thunderbird/14.0 MIME-Version: 1.0 To: Randy Dunlap CC: Michal Marek , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] xconfig: Display dependency values in debug_info References: <1343256982-11421-1-git-send-email-salaarali@gmail.com> <50107EB7.8000009@xenotime.net> <50117812.5080302@xenotime.net> In-Reply-To: <50117812.5080302@xenotime.net> Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org Now the debug_info only shows y/n/m values. Signed-off-by: Salar Ali Mumtaz --- scripts/kconfig/qconf.cc | 14 +++++++++++++- 1 files changed, 13 insertions(+), 1 deletions(-) diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc index df274fe..b6a7cc5 100644 --- a/scripts/kconfig/qconf.cc +++ b/scripts/kconfig/qconf.cc @@ -1073,8 +1073,10 @@ QString ConfigInfoView::debug_info(struct symbol *sym) debug += " (choice)"; debug += "
"; if (sym->rev_dep.expr) { - debug += "reverse dep: "; + debug += "reverse dep: ("; expr_print(sym->rev_dep.expr, expr_print_help, &debug, E_NONE); + debug += " ) ="; + debug += print_filter(sym_get_string_value(sym)); debug += "
"; } for (struct property *prop = sym->prop; prop; prop = prop->next) { @@ -1108,7 +1110,10 @@ QString ConfigInfoView::debug_info(struct symbol *sym) } if (prop->visible.expr) { debug += "    dep: "; + debug += " ( "; expr_print(prop->visible.expr, expr_print_help, &debug, E_NONE); + debug += " ) ="; + debug += print_filter(sym_get_string_value(sym)); debug += "
"; } } @@ -1152,11 +1157,18 @@ void ConfigInfoView::expr_print_help(void *data, struct symbol *sym, const char { QString* text = reinterpret_cast(data); QString str2 = print_filter(str); + QString value; if (sym && sym->name && !(sym->flags & SYMBOL_CONST)) { + value = print_filter(sym_get_string_value(sym)); + *text += QString().sprintf("", sym); *text += str2; *text += ""; + *text += " "; + if(value == "y" || value == "m" || value == "n") + *text += print_filter(sym_get_string_value(sym)); + *text += ""; } else *text += str2; }