From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f179.google.com ([209.85.128.179]:32975 "EHLO mail-wr0-f179.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966287AbeBNAl7 (ORCPT ); Tue, 13 Feb 2018 19:41:59 -0500 Received: by mail-wr0-f179.google.com with SMTP id s5so20376474wra.0 for ; Tue, 13 Feb 2018 16:41:58 -0800 (PST) Date: Wed, 14 Feb 2018 01:41:54 +0100 From: Petr Vorel Subject: Re: [PATCH 2/2] kconfig: Print the value of each reverse dependency Message-ID: <20180214004153.GA1154@x230> Reply-To: Petr Vorel References: <20180213005610.10575-1-rosca.eugeniu@gmail.com> <20180213005610.10575-2-rosca.eugeniu@gmail.com> <20180213235448.GA30690@example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180213235448.GA30690@example.com> Sender: linux-kbuild-owner@vger.kernel.org List-ID: To: Eugeniu Rosca Cc: Ulf Magnusson , Masahiro Yamada , Nicolas Pitre , Randy Dunlap , Paul Bolle , Linux Kbuild mailing list , Eugeniu Rosca , Eugeniu Rosca Hi Eugeniu, > To be honest, purely as a user, I would probably prefer something like > below: > Selected by [y/m]: > - EXPR_01 > - EXPR_02 > Selected by [n]: > - EXPR_03 > - EXPR_04 Sorting again, just with header? It looks more readable (although Masahiro's approach is quite readable as well). If you chose this, I'd suggest not displaying title, when there is empty list. i.e., don't show "Selected by [y/m]" in this: Selected by [y/m]: Selected by [n]: - EXPR_03 - EXPR_04 > But (as a developer) I feel it can only come at the price of increased > complexity of __expr_print() (at least, if not bigger than, [1]). What I > like about the current approach suggested by Masahiro is that it keeps > the impact low with still making a great improvement in readability. > If you think we should explore the second possibility of grouping the > active/inactive dependencies, I'll try to come up with some solution > in the next days. > [1] https://marc.info/?l=linux-kbuild&m=151777006005199&w=4 Kind regards, Petr