Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1157567pxb; Fri, 21 Jan 2022 11:04:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJw4qT0P9cEdjYWzjDQ5xRLfwzC8Ovh5wdwZRiPAHUo4KHdyaRSDqJm6yXBKxiHZgR71b5Cw X-Received: by 2002:a17:902:b607:b0:14a:cae5:d8f with SMTP id b7-20020a170902b60700b0014acae50d8fmr4812909pls.131.1642791878994; Fri, 21 Jan 2022 11:04:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642791878; cv=none; d=google.com; s=arc-20160816; b=YDY3tfdmZr96RvQ1A1PRdjP/VyrHE9xjKfC2cpCKGXPDBmi/NHI+3D2sxrFZj7DHUo TUKqFnQACNB7zh6C9OwStk9joqPtz/i41+Bo/AUY/q49NOgZWwXLIbI0tPaOwUHaqBfh Hm449BIJfadL/QsKNqD9fJMaD5wZzHdep/9dbR9qoavwvNMhkJMIFDstCMzb+2igcnFG lYTL21sx+FZlRjxjETUHyAwsV3lP9KI8T7dlonGjsWlx71ZBUgKs0Q2lbQQwUCM2BAi6 jR9lX3NymS0ev+O11DOzvNNTktylOJrN3TGpGhUxTNo4xQUSESQqb0w46UEwFR57DHGV HxZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=mLkYR++bzkScKe6Tm8JyNj0DqlLLK9tz/Lg8X7oEfXQ=; b=TGbRh5+y2ZDxWS0e8VRSkfhP8Us5hv6TX7KFEweNTh+Q30Q07FDfY5qofye9sCeR1U /Dy+hLfUnelFOzKvErJeubvqcBLribJajVKQNyPhe3VcQOlRRwgWOXZ3AStpCQqLn12c jpEKci/aAFpVWEnHb0eFsspe5PQR2DCQpyq75EOlcFyJkB9ivrzJSxGJIQyN9fwmZPxs C/wIkMyRqsXrzhkufjqECqv2Zv06H6Ngj2GPymubt9y3S2DDhfb9cQ4KzVwY32S8Fy+F KPWKCkoxTj+6KO9mKpwH5t4s8L/GJNkzrBVelN03BE/Q02ufZiNpCCvQLTnHiLar4NOl Fy+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=YkalItov; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rj13si13463334pjb.33.2022.01.21.11.04.26; Fri, 21 Jan 2022 11:04:38 -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; dkim=pass header.i=@intel.com header.s=Intel header.b=YkalItov; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352989AbiASJTS (ORCPT + 99 others); Wed, 19 Jan 2022 04:19:18 -0500 Received: from mga12.intel.com ([192.55.52.136]:61815 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352693AbiASJTL (ORCPT ); Wed, 19 Jan 2022 04:19:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1642583951; x=1674119951; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Zf7maaT407OcqJiMSYXoEAzMcLY861f8NYGTlKtPnGA=; b=YkalItov6WCXDDbUVKKK5aiMjxJxH7VjKeBum4WvbO6/eIILTB8TVBJw jRCxXXVexNuFXe7vS7MNJ6i/X4Yr+VXupmXNUNrECWFoZIzkBepGSqWw4 yra6STdVm4jTib3jLzsdVfV7+Lrqx9pj3CQ8cR5EmMeagU4MlmkKoHH85 5cqCu828qtI5h+4xugHrJy1z8tTYl4NE8N1FgJNRRB2GpXvaucEd6IDMH xoEjc5zSBaX34fbfXHRQmOWwjcQ/gvsOwidLRd5fdoDcVqTwyPqi1fw9Z FnwI4Ke+m92A92TKLrLxpYChlXf3f9lyFUIz6G/FF/LoqsfAt2B3teJxK A==; X-IronPort-AV: E=McAfee;i="6200,9189,10231"; a="225001669" X-IronPort-AV: E=Sophos;i="5.88,299,1635231600"; d="scan'208";a="225001669" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jan 2022 01:19:11 -0800 X-IronPort-AV: E=Sophos;i="5.88,299,1635231600"; d="scan'208";a="622447667" Received: from paasikivi.fi.intel.com ([10.237.72.42]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Jan 2022 01:19:01 -0800 Received: from paasikivi.fi.intel.com (localhost [127.0.0.1]) by paasikivi.fi.intel.com (Postfix) with SMTP id CEBE0203C8; Wed, 19 Jan 2022 11:18:59 +0200 (EET) Date: Wed, 19 Jan 2022 11:18:59 +0200 From: Sakari Ailus To: Lucas De Marchi Cc: 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 =?iso-8859-1?Q?K=F6nig?= , 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 , Steven Rostedt , Vishal Kulkarni Subject: Re: [PATCH 1/3] lib/string_helpers: Consolidate yesno() implementation Message-ID: References: <20220119072450.2890107-1-lucas.demarchi@intel.com> <20220119072450.2890107-2-lucas.demarchi@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220119072450.2890107-2-lucas.demarchi@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Lucas, 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. Then, Reviewed-by: Sakari Ailus -- Sakari Ailus