Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1170842pxb; Fri, 21 Jan 2022 11:22:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJzotbYlFNwqQ8mzWtB5oKH1n1PmvSSd/4IGAXeyshUN3G81LNTPtDPH14v9dypYn4ICBoek X-Received: by 2002:a63:86c6:: with SMTP id x189mr3908009pgd.20.1642792939829; Fri, 21 Jan 2022 11:22:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642792939; cv=none; d=google.com; s=arc-20160816; b=L4JZN3mThZ0y/Xwj9ZH7Yffg2QgOfn3efEzAXv1rzIL9pqLjvvcOYgmJETxlZM4nEC kl0hjl967Nb5e0SH2ELUbacg/fEFqs92j0tRTpwtuint4NUdOtkPDYVfBI3cID+FnIzz 710anZ2Ufl5dCI1ZIT88u/sMPdj7lzQ8+xbnphlmLbPyYOoRrBn+mRl15KcTTHHdgo3E g/QW7ysG5hZ0cluqtTGZnCPsocD5MeiFJHj+OtaqwycXdGeGHqFyzxWijf67vcCHDdeo Zgvn5AVNMiEFSPYeZWm8mteX6tDPfMWInHwEaLZO61iFqgX8suijtdHIsRBDPQy7rmzp W46A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=rxPIHRToqA7JRmr8lrhasfcvsbgO+3fDV6bMIRSC2Z4=; b=cjRKOV0POETjo7ZMfiFEnJuAhWow7IfJuF/5E9DaocGF9BN9/qdNoJaACRnwLRms61 eizgcLDiE+bOQvpkiNjvKqkM/jE+VGkdEiqflAHX+4xN2/HUwx981OCXElOLUYr7Yl3j 83S0rNgIaIEI4jDG7VhMb+hQ/ipYdUvswIuxbBoJEcdZhkZ4iu94HpYVxlnY0ssI/XL7 fSKL8tbh7qq0G7z/Ad4w3AJZEewHSnXbT8PaUawPX8ff0EzBYvRcPq52lTCAeKL2MMFx U1ln23neB/QtYfgYEcFqHguidKnyCByPS90L9qakKqtZNnU5oKFAIyu7Yk2KNk3Y5ch6 RuHA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d15si7119367pgk.641.2022.01.21.11.22.07; Fri, 21 Jan 2022 11:22:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355234AbiASPGn (ORCPT + 99 others); Wed, 19 Jan 2022 10:06:43 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:49320 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235115AbiASPGn (ORCPT ); Wed, 19 Jan 2022 10:06:43 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D64CCB80E09; Wed, 19 Jan 2022 15:06:41 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 04AE5C004E1; Wed, 19 Jan 2022 15:06:36 +0000 (UTC) Date: Wed, 19 Jan 2022 10:06:35 -0500 From: Steven Rostedt To: Sakari Ailus Cc: Lucas De Marchi , linux-kernel@vger.kernel.org, intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org, linux-security-module@vger.kernel.org, nouveau@lists.freedesktop.org, netdev@vger.kernel.org, Alex Deucher , Andrew Morton , Andy Shevchenko , Andy Shevchenko , Ben Skeggs , Christian =?UTF-8?B?S8O2bmln?= , Chris Wilson , Daniel Vetter , David Airlie , "David S . Miller" , Emma Anholt , Eryk Brol , Francis Laniel , Greg Kroah-Hartman , Harry Wentland , Jakub Kicinski , Jani Nikula , Joonas Lahtinen , Julia Lawall , Kentaro Takeda , Leo Li , Mikita Lipski , Petr Mladek , Rahul Lakkireddy , Raju Rangoju , Rasmus Villemoes , Rodrigo Vivi , Sergey Senozhatsky , Vishal Kulkarni Subject: Re: [PATCH 1/3] lib/string_helpers: Consolidate yesno() implementation Message-ID: <20220119100635.6c45372b@gandalf.local.home> In-Reply-To: References: <20220119072450.2890107-1-lucas.demarchi@intel.com> <20220119072450.2890107-2-lucas.demarchi@intel.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 19 Jan 2022 11:18:59 +0200 Sakari Ailus wrote: > On Tue, Jan 18, 2022 at 11:24:48PM -0800, Lucas De Marchi wrote: > > @@ -1354,8 +1345,7 @@ static bool tomoyo_print_condition(struct tomoyo_io_buffer *head, > > case 3: > > if (cond->grant_log != TOMOYO_GRANTLOG_AUTO) > > tomoyo_io_printf(head, " grant_log=%s", > > - tomoyo_yesno(cond->grant_log == > > - TOMOYO_GRANTLOG_YES)); > > + yesno(cond->grant_log == TOMOYO_GRANTLOG_YES)); > > This would be better split on two lines. Really? Yuck! I thought the "max line size" guideline was going to grow to a 100, but I still see it as 80. But anyway... cond->grant_log == TOMOYO_GRANTLOG_YES is not readable at all. Not compared to cond->grant_log == TOMOYO_GRANTLOG_YES I say keep it one line! Reviewed-by: Steven Rostedt (Google) -- Steve > > Then, > > Reviewed-by: Sakari Ailus