Received: by 10.223.185.116 with SMTP id b49csp1939057wrg; Sat, 24 Feb 2018 07:19:18 -0800 (PST) X-Google-Smtp-Source: AH8x226rtmNKZvn+fAh2wXC+HaS0DvcoUq8GPa6MO6L/IysVWK1aoX9ssKk076uEN98O+gh/qPNK X-Received: by 10.98.190.3 with SMTP id l3mr5139206pff.155.1519485558539; Sat, 24 Feb 2018 07:19:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519485558; cv=none; d=google.com; s=arc-20160816; b=ctSIT93EVZfJhE/FZr2aMYfNU9EGUKFzctahXA+eCdedz8u4YrPPhUeMr5UrSZnmgL Ed3VSDRjzXJTbE2gXsL5HuAzy4dCsnD5uXFGMB8tTGw4pojHodc3EoTtrq4Oxy+SujJc OnpbIW8RIZWfv0QqVVrT9vBWNcIFwjztT4gj9+ZKQFSZrLCizSAlYQbh6RUMGEgWnIF1 vp+dpXpvISRb/HnmmVzMKwVrgfqrXjaFB9PaSKiexUupBGQ4QGBAff+2T1FGIeYJ3+bq 9FwOr1RFVpAV4ohvVrPk3W9d8dnNF1xLCGyREFTEG6NHOgPAxOqeg8Qi2CQdOJwaO03T wniA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature:dkim-filter :arc-authentication-results; bh=Es88QNkVItAbClq2VG5YgcbBXXtRnoRDLTpLfz3KiRI=; b=LSJ3Hn+pZaVYLSPC6KvdNuOdVOoOMOGillTMUdKcouKyjnTAOKwzaPkOVY/D+Z4UDa 8DQWAZP0isYFjQTt9Ufyrhei8ps6H+v19VDpIFqcuxHKbFPv8p9d7YPA830LDFIl8goy efOdy9iaffkA9cjf+1hF52tuTZzn1MjR+zmtmIGFF+COWkpAvNr5Gni2hWqtSqgbIBHJ TmEuktJYafy4kuFMqP11lls7n+rzCbzOO+78u77KdqdFrVjrSyvQVJ0vuwi1aZTi9KXa vkyVQOcuKUikkuVU/JOdkEHZFHgqyfWFM9EM/vp5+MST5jumn2ndIXYhG4pZsMUtzxg+ i7Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=znJnBhl+; 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 d2si661541pge.465.2018.02.24.07.19.03; Sat, 24 Feb 2018 07:19:18 -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=@nifty.com header.s=dec2015msa header.b=znJnBhl+; 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 S1751428AbeBXPS0 (ORCPT + 99 others); Sat, 24 Feb 2018 10:18:26 -0500 Received: from conssluserg-02.nifty.com ([210.131.2.81]:30101 "EHLO conssluserg-02.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750826AbeBXPSZ (ORCPT ); Sat, 24 Feb 2018 10:18:25 -0500 Received: from mail-vk0-f53.google.com (mail-vk0-f53.google.com [209.85.213.53]) (authenticated) by conssluserg-02.nifty.com with ESMTP id w1OFI7TU021835; Sun, 25 Feb 2018 00:18:08 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-02.nifty.com w1OFI7TU021835 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1519485488; bh=Es88QNkVItAbClq2VG5YgcbBXXtRnoRDLTpLfz3KiRI=; h=In-Reply-To:References:From:Date:Subject:To:Cc:From; b=znJnBhl+HwUHMluHxgVu2POTPR0LXP2ymvimyrF+OdYh5ulAKVA8pmDOR/zzvLj9r ++rFzEqRuXsDKwJEq6GUFQFmx6pNiZn/kkOTJFEDlk/rNKv3f0cGGRJWLsD8ctN12F yH0zcmeXV2it46ZIVAGAffIJ6ad83nd6gpQpewuCFktQDYcY0fL/oyMS9Zb7RxdwoU piEacC6WC/SOHp24OAdIWNrtNOuezFIf6bbYKn0TXonDyrfXMQ/8uoclPKuFuGymvs eR6kAII5zYogFVJulq7lJ68wf1NTlNkwNm0fbMLoo1f0gmeEEy2oDEGh5NSuTMPQGe pooRrAJCLGvTw== X-Nifty-SrcIP: [209.85.213.53] Received: by mail-vk0-f53.google.com with SMTP id u200so7309240vke.4; Sat, 24 Feb 2018 07:18:07 -0800 (PST) X-Gm-Message-State: APf1xPDE9+6EMTBJwHluo+8zCphPzwZtUCJE3Vo/081CIzi7NF36XSn5 IM/TzjhDvolzWj7rn0NJX38BWd1TwP+myMao9CI= X-Received: by 10.31.236.195 with SMTP id k186mr3824955vkh.166.1519485486856; Sat, 24 Feb 2018 07:18:06 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.32.138 with HTTP; Sat, 24 Feb 2018 07:17:26 -0800 (PST) In-Reply-To: <20180221111447.ki7v66azmfgch5om@dell5510> References: <1519114728-1084-1-git-send-email-yamada.masahiro@socionext.com> <20180221111447.ki7v66azmfgch5om@dell5510> From: Masahiro Yamada Date: Sun, 25 Feb 2018 00:17:26 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] kconfig: clean-up reverse dependency help implementation To: Petr Vorel Cc: Linux Kbuild mailing list , Sam Ravnborg , Michal Marek , Ulf Magnusson , Randy Dunlap , "Luis R . Rodriguez" , Paul Bolle , Nicolas Pitre , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- Best Regards Masahiro Yamada