Received: by 10.223.185.116 with SMTP id b49csp1968515wrg; Sat, 24 Feb 2018 08:00:47 -0800 (PST) X-Google-Smtp-Source: AH8x2263PoIgYFxoCQMzAzxtZjIVRiNvWxQ+BV6AbRza5b2kBWv/CiB6+whqsObmiEia22ilNM5G X-Received: by 10.98.17.86 with SMTP id z83mr5268512pfi.207.1519488047085; Sat, 24 Feb 2018 08:00:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519488047; cv=none; d=google.com; s=arc-20160816; b=Wdj9WIaz92jlpGUeAuOae/ws3INBZzG7tWvR4asdtG/7OWm2M9rk83DNBVzchA76AJ MZtKMnF6S57Q+DcUmSs+L/p5QvChjLb9/B/sU+TUm1Vf3vFpClN2ko/cdbrhe3FLSmtT UhPdrOQmeWsqdI96c5g40bP5Kgqe8P+n9zkOOoz9qDsZ/Y5tDlJ4VTIic/PsGijUUCCv erUYdlYPtCsMiZQ1HRKcbeWibWf5TiJtuJlbVb+6tLL1LHT1kQip7OUTBXMWkGUcOZP3 RvUjzepVXhBIxLU1UnE0OZPBuWOYziYsNDm/X2z4hPI2lqReXtk5q62ZSTBzWW4XezSX r4jw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :dkim-signature:mime-version:arc-authentication-results; bh=lH74MOeEAq6pRWHOyD+FzCWf7fK3c4GA8tOTNLLbZZc=; b=YE1up++gIHDv4TaIcg8DM7rosLFhFJpD97jQ0LSFXAla6I1jUP08QCQSBlJncseWG6 6A3Qvi0p2omNWO7YEfj38CRN4wXtmHUoy+uVXPzry/tXQgCV/DO9K7JXYi1ePXvRLMyD UvFJ7LMzP1572fTz3dEMOgkhN4s6RsuDgkPlRhK3edweO8VTIMt41UH7juC/gaetexQD 7filP+/Xmw7xwBJShFE/eyX6bSxyV2P8yCsPzgRxrD8hyOZE/2PHIfzaNiW0IOHBsMIl Vi+YcWgMQsnC3bJ7culuHKYmr8ZrOpAwejvXusY7776MyEsbW86f1gzF6CyESPfyB5WY 6WEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@firemail.cc header.s=mail header.b=s5VyR96s; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y2si3070190pgs.359.2018.02.24.08.00.32; Sat, 24 Feb 2018 08:00:47 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@firemail.cc header.s=mail header.b=s5VyR96s; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751533AbeBXP6k (ORCPT + 99 others); Sat, 24 Feb 2018 10:58:40 -0500 Received: from cock.li ([185.100.85.212]:58244 "EHLO cock.li" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751364AbeBXP6j (ORCPT ); Sat, 24 Feb 2018 10:58:39 -0500 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on cock.li X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,NO_RECEIVED,NO_RELAYS shortcircuit=_SCTYPE_ autolearn=disabled version=3.4.1 MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=firemail.cc; s=mail; t=1519487916; bh=AKI0pi4HYUz+W5ALlIi95GHK7r84kjQ9/qJKcEfux7M=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=s5VyR96srVhwOYij5EWpjl+8stddyiJe83SHenz9wYiei9d4i34F7Y1A5RzbzWPE0 B0K9krlAzhDQh0/fw1FqNNTPjVLtWBfSmw4uwQhVseHge1pSJPfLlf2olpRLIWUR8i S1SjY+/ux4rZ4K0ZTIY3r9k5MTlTIc8TutGRCSlSQS1ztf7RqBVE4QhStn5GibH258 1lUFZyAofsnpDUH1yOMX+yaLSih4vwkBtyhN+Qrbt9gVpZS45w4wa+fphXeEPTJHM7 cu2VTr5ty6r+YKsV3tDS2dqn63QzwqC6Et9Jx9oLc/bkJIMfbzHh1+uek5mnmRnPRD B5WECcDzIuW+A== Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Sat, 24 Feb 2018 15:58:30 +0000 From: thetruthbeforeus@firemail.cc To: Masahiro Yamada Cc: Petr Vorel , Linux Kbuild mailing list , Sam Ravnborg , Michal Marek , Ulf Magnusson , Randy Dunlap , "Luis R . Rodriguez" , Paul Bolle , Nicolas Pitre , Linux Kernel Mailing List , linux-kernel-owner@vger.kernel.org Subject: Re: [PATCH] kconfig: clean-up reverse dependency help implementation In-Reply-To: References: <1519114728-1084-1-git-send-email-yamada.masahiro@socionext.com> <20180221111447.ki7v66azmfgch5om@dell5510> Message-ID: <8d5974ec42efe396eb9ee1742860dfa0@firemail.cc> X-Sender: thetruthbeforeus@firemail.cc User-Agent: Roundcube Webmail/1.3.3 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Masahiro Yamada: you like anime, don't you. You like what anime promotes, don't you. Being a japanese. On 2018-02-24 15:17, Masahiro Yamada wrote: > 2018-02-21 20:14 GMT+09:00 Petr Vorel : >> Hi Masahiro, >> >>> This commit splits out the special E_OR handling ('-' instead of >>> '||') >>> into a dedicated helper expr_print_revdev(). >> >>> Restore the original expr_print() prior to commit 1ccb27143360 >>> ("kconfig: make "Selected by:" and "Implied by:" readable"). >> >>> This makes sense because: >> >>> - We need to chop those expressions only when printing the reverse >>> dependency, and only when E_OR is encountered >> >>> - Otherwise, it should be printed as before, so fall back to >>> expr_print() >> >>> This also improves the behavior; for a single line, it was previously >>> displayed in the same line as "Selected by", like this: >> >>> Selected by: A [=n] && B [=n] >> >>> This will be displayed in a new line, consistently: >> >>> Selected by: >>> - A [=n] && B [=n] >> >>> Signed-off-by: Masahiro Yamada >> Reviewed-by: Petr Vorel >>> --- >> >> >> >>> get_symbol_props_str(r, sym, P_SELECT, _(" Selects: ")); >>> if (sym->rev_dep.expr) { >>> - str_append(r, _(" Selected by: ")); >>> + str_append(r, _(" Selected by: \n")); >> ^ >> I'd remove unnecessary whitespace here ^. > > > I decided to not touch the text inside _( ... ) in this patch > although I do not think anybody translated " Selected by: ". > > I just moved str_append(r, "\n"); > > Anyway, this line will be removed soon. > > > Applied to linux-kbuild/kconfig. > > > > > > > >> str_append(r, _(" Selected by:\n")); >>> expr_gstr_print_revdep(sym->rev_dep.expr, r); >>> - str_append(r, "\n"); >>> } >> >>> get_symbol_props_str(r, sym, P_IMPLY, _(" Implies: ")); >>> if (sym->implied.expr) { >>> - str_append(r, _(" Implied by: ")); >>> + str_append(r, _(" Implied by: \n")); >> The same here. >> >>> expr_gstr_print_revdep(sym->implied.expr, r); >>> - str_append(r, "\n"); >>> } >> >>> str_append(r, "\n\n"); >> >> >> Kind regards, >> Petr >> -- >> To unsubscribe from this list: send the line "unsubscribe >> linux-kbuild" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html