Received: by 10.223.185.116 with SMTP id b49csp564474wrg; Wed, 21 Feb 2018 03:15:51 -0800 (PST) X-Google-Smtp-Source: AH8x226o5pgrwB5D8db/z7jYgxs3BFoBRyjAs5dB0MLsGZLX9fQ+L/K/jHhi/cIOmIXu7rL1bfNC X-Received: by 2002:a17:902:9a02:: with SMTP id v2-v6mr2838670plp.312.1519211751219; Wed, 21 Feb 2018 03:15:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519211751; cv=none; d=google.com; s=arc-20160816; b=iK9btA/z6pVPT6xM3GtZB/0Vp3DqGjx1f/QmBhLOyC9sRo3St9dxrJ1ANETeDO/yb6 UjoiZFTKJJ+KEUCWvaROR/RuMC6m3GUJWWf6exVdEWZv4QINUk92aDS6X308pxeVn0tK ahTCq+SNN+59FWlFQlMAY2cwgOFG4DrZsUQGax5D3vVhdyWMfpEJTDe+wdAVjoF80I1S Yl84OT5Aiku2xdbu25O2g+3PGWyZFWmT2nix8cc+Xp8Bz4aMNVPBocXpmeTv0sG21uga H4+egbzZ4l/ZoUrbN7eUgLWuFTEGSAfF0ussPsYhHpgD76TiqadLvZ0Mk06wa/JfiUEj tP3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:reply-to:message-id :subject:cc:to:from:date:dkim-signature:arc-authentication-results; bh=NvF5cN2h1IMvEGnXZl5ELc+kKj6BmT+ETlkpdzmHHEo=; b=l+GU/NrfAe4f9AG264mlnZ9N/iR9T8z02HENeNDYahRakBX4cL77esWG1iBYr6ylaX Vy/rNVsvLJ7ekrDuvSwEeKL8kqCpeJqry1XVBSObFza2cvYP0EE2Y6anOCg5AdKjl5Wh KPAAIP0Su7TGaHLhv7yiBWtKjggnJERyyekMs2N7i05dHZupbtSRj9rkIJdg5SVLUH+8 JdlKioRlfTJyYEIiAEshF1d8U6DY4C7Ipo79Jh0R3AMmPcCzimX2D8+1870VXPiy6El+ uu0TJabqIexG3Lk438azY2+ske2shhrJLYCTnGLGEmLrlQiLfy6nBSPSRGQrmu6K7lEg Jggw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PGvt76Hb; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e13si1834982pgt.481.2018.02.21.03.15.37; Wed, 21 Feb 2018 03:15:51 -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=@gmail.com header.s=20161025 header.b=PGvt76Hb; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933003AbeBULOy (ORCPT + 99 others); Wed, 21 Feb 2018 06:14:54 -0500 Received: from mail-wr0-f172.google.com ([209.85.128.172]:36958 "EHLO mail-wr0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753152AbeBULOv (ORCPT ); Wed, 21 Feb 2018 06:14:51 -0500 Received: by mail-wr0-f172.google.com with SMTP id z12so3365232wrg.4; Wed, 21 Feb 2018 03:14:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:reply-to:references:mime-version :content-disposition:in-reply-to:user-agent; bh=NvF5cN2h1IMvEGnXZl5ELc+kKj6BmT+ETlkpdzmHHEo=; b=PGvt76Hbe5keExWknErSZUw1I7bYj0MjCROPRhj5dgbmWa3ywzhNCg0VeYl7eIdWcO JYXpVfaYoexpD3cFGI1fPoki0sxvJ8lcDXq75vwow9WmFutpQUmnml4yuNZ/VOIGcbDS VQ+fHYdMSpdl9PLKjiJOf2IF4NTUPYOjLYHaq4hy1NT9xjeai7SU9MXaX6OFqKOu4efr Lg8j1CeDu8H0x3ee8Vr/NC9fS1wei19tWGe2yS7/IWUKa2+q4W4q5k5+leNxHeTSWW5k PnrDLcX3Njvctao3lnGgSuXc5yN/NJNNQX0t39dcaaKYie6DbBpbdz03m/MZaCZzjIFQ vB2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:reply-to :references:mime-version:content-disposition:in-reply-to:user-agent; bh=NvF5cN2h1IMvEGnXZl5ELc+kKj6BmT+ETlkpdzmHHEo=; b=oJ3uOHcS3LLcxZ11kCowvzz6tx3wrEkamIhSmFV17JJaCuGA44iSjQHwwWjXO9Z6sD 9jRVco8ocNlcmUXqf7DTCXR15FYH/Q5+JVUNS0wMKdTtaTKQzE3DkHn0el/xstxBUwKf vtod4gO5JWfLw7X9nIs1EBoz0R51hgE3aNtbPzgdqQ1Kr1AhRtC76IagFDN/a7/I+Q48 IU2cYDzFlS+IH9GUX+x+G4MCOHfkCiXljsI3C7qvGOa0L2Fa1PbSCk05QLjVjgCmAG7T I2W8BaPC5UftHBLoqAC7skG0kBpqiqwqPQEPiVIjbtFPSLSVgZqdF5rNhDvDe6/bWgoM T58w== X-Gm-Message-State: APf1xPDXeH9DUBLTXwIS397aD1FKHCuPtuNLgq+xQnEo1UQfINayC3NO MFn720EaeQuvKylTLKWEoJI= X-Received: by 10.28.197.204 with SMTP id v195mr1511547wmf.113.1519211690344; Wed, 21 Feb 2018 03:14:50 -0800 (PST) Received: from dell5510 ([85.119.94.113]) by smtp.gmail.com with ESMTPSA id 81sm26118445wmi.26.2018.02.21.03.14.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 21 Feb 2018 03:14:49 -0800 (PST) Date: Wed, 21 Feb 2018 12:14:48 +0100 From: Petr Vorel To: Masahiro Yamada Cc: linux-kbuild@vger.kernel.org, Sam Ravnborg , Michal Marek , Ulf Magnusson , Randy Dunlap , "Luis R . Rodriguez" , Paul Bolle , Nicolas Pitre , linux-kernel@vger.kernel.org Subject: Re: [PATCH] kconfig: clean-up reverse dependency help implementation Message-ID: <20180221111447.ki7v66azmfgch5om@dell5510> Reply-To: Petr Vorel References: <1519114728-1084-1-git-send-email-yamada.masahiro@socionext.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1519114728-1084-1-git-send-email-yamada.masahiro@socionext.com> User-Agent: NeoMutt/20170912 (1.9.0) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 ^. 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