Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp4986406pxb; Mon, 15 Feb 2021 06:42:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJyY275ZSwD8PzXkHyk/X5cE7R2IhF2pcF2P35ClubEh5mS8D5YcLYtidUQy1RkwEHJlxK9C X-Received: by 2002:a50:80c6:: with SMTP id 64mr16032026edb.209.1613400155003; Mon, 15 Feb 2021 06:42:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613400154; cv=none; d=google.com; s=arc-20160816; b=E1mRsKXr6ei93DHfnJ6usYIrV7X7/3W/s5G8yOXocFYiEQw7sV+t+ESwKYU5qvJ4Vr 9iZnAyERL8KzWrB4wWgUpItv/lzCtmfAsXehsJFzsg0oC2+FvPlROYwBa5ehTNnNmHjg oIFdfl8wwfru83K1mFwgHs37VMW0wsewTHAFnYJIQY2z8NndCaSspaWf0WNffCfbXEPS LyOtifBJREjuFgnCl14rigIiMjOqspyZnRFX8Pdc4sZZnyttV8C+9Igy1xlULx7nrwZ1 y7Sb4HOcO/QZ3zXzC6rN4pNYHNIw5bfNvyLlZEgWDpGeNa2Z+1LecQ5vD/RCZOLQLSbD DqfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=4k/YlfJBwWB/CB9z3j4IwxeWRKuiJsOpEaK3C24WkHk=; b=QBBx+MmRw1OhvPbmbMYXfsZdptTC/WbjU3OqG/bkCmHKK5YSJD5suPCAI26N+xivgd e77TS3PR7z3ysgWQ8NYk7hLLr9VrogRdaqe+XJGPzFXxHxS/BZW5Kvm1xgMVMsu2FtJy FznDEQPrRLJsqQI4HwzSxuZYxj/8iqTEDxdqJBrMc4/S8JqPOfZJVRCrRjtGRgqEX30F 2cR3PtQs01uTWYTofnn4DZYWq0RtHXAOklE4bT06TMtyRrqW1jIJ8yIEhqeKWQcxuOpV RH++DfGGW9mhEebyyAIFmiUhCSUDEQ13fsJ72Q19nGFtZU0z/XL+/0cICnNGN2FFauAC i11w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=k0cKC4YN; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x26si12251574edv.178.2021.02.15.06.42.12; Mon, 15 Feb 2021 06:42:34 -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=@gmail.com header.s=20161025 header.b=k0cKC4YN; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229652AbhBOOkk (ORCPT + 99 others); Mon, 15 Feb 2021 09:40:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55958 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229934AbhBOOkX (ORCPT ); Mon, 15 Feb 2021 09:40:23 -0500 Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 28AD6C061574; Mon, 15 Feb 2021 06:39:43 -0800 (PST) Received: by mail-pj1-x102e.google.com with SMTP id lw17so2745540pjb.0; Mon, 15 Feb 2021 06:39:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=4k/YlfJBwWB/CB9z3j4IwxeWRKuiJsOpEaK3C24WkHk=; b=k0cKC4YN6xyUE2B/OZFXTOW9hvFzaOa/URb+GHSCBxTTmvHlMC9Eta86bh6fCS9h2p y66p0KfJrrfzJdHwjKlIKVB09VTVbd8uO5LXSTfEckTSNA43ibpSr8FxWBvDdzmW/BWP D111hPR6Xc8SNuwH0bo7QeN6FPMIDV5Y47SI04WrnHpsqUW7Pn19GxIBUPAD78SOfWtE LysnRjPtGWRF1ja99qJEZ6qCT91Y+1p89jqnovBYM8L3YBS6mmwrAIHWcWUHvpfD2Por THlYbftsWLvbsoIK6qHMb55DNXsFpGqLgZr/IxGSdJOXdfxUNuqxPX8Wt22SgCOeFLSW hJMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=4k/YlfJBwWB/CB9z3j4IwxeWRKuiJsOpEaK3C24WkHk=; b=etxD76IHjYoaFPmTv7P9BOfwDxHDzdw4H1cJbdN4APskpfst9V1nL02pa3agWQgHgC Zpeqp2zEC/5KVrBZO1Ux6XGlaghnQWFnVMU2eDYi2jEEazHrWw/KdrfhQZkPFXCFq1uG Y20xCuhGZHE5laTDuR36P79Qgx780X+Yvci0GTa06IfFDS5HNCn1eCbpnafcac3Sz+g4 4bcLukIH/9u75bgIuCwYIisXaacJqoAM/5F4tG3cA0+HyM4Kw53VetC5iX0FPHQczivU KLnv2LFdEC8V5TBViH8oUrP5mj2dnN0W4/hwas5zxzn46TUOmo3caws8TsfOOoUSUaBk GTnQ== X-Gm-Message-State: AOAM530MJyjm8bvQ8wyv1aGlGSfHL7SasDGiAGB+3vb0mj9yTmzEpoWa AtOwjVezIKpqMAXOOl8el06PelRFGJLPIq03mOc= X-Received: by 2002:a17:90a:1b23:: with SMTP id q32mr16831579pjq.181.1613399982663; Mon, 15 Feb 2021 06:39:42 -0800 (PST) MIME-Version: 1.0 References: <20210215142137.64476-1-andriy.shevchenko@linux.intel.com> <43456ba7-c372-84cc-4949-dcb817188e21@amd.com> In-Reply-To: <43456ba7-c372-84cc-4949-dcb817188e21@amd.com> From: Andy Shevchenko Date: Mon, 15 Feb 2021 16:39:26 +0200 Message-ID: Subject: Re: [PATCH v1 1/3] string: Consolidate yesno() helpers under string.h hood To: =?UTF-8?Q?Christian_K=C3=B6nig?= , Sakari Ailus , Petr Mladek , Rasmus Villemoes , Sergey Senozhatsky , Steven Rostedt Cc: Andy Shevchenko , Alex Deucher , Mikita Lipski , Eryk Brol , Chris Wilson , "David S. Miller" , Rahul Lakkireddy , Francis Laniel , amd-gfx@lists.freedesktop.org, dri-devel , Linux Kernel Mailing List , intel-gfx , netdev , Harry Wentland , Leo Li , David Airlie , Daniel Vetter , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Raju Rangoju , Jakub Kicinski Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +Cc: Sakari and printk people On Mon, Feb 15, 2021 at 4:28 PM Christian K=C3=B6nig wrote: > Am 15.02.21 um 15:21 schrieb Andy Shevchenko: > > We have already few similar implementation and a lot of code that can b= enefit > > of the yesno() helper. Consolidate yesno() helpers under string.h hood= . > > > > Signed-off-by: Andy Shevchenko > > Looks like a good idea to me, feel free to add an Acked-by: Christian > K=C3=B6nig to the series. Thanks. > But looking at the use cases for this, wouldn't it make more sense to > teach kprintf some new format modifier for this? As a next step? IIRC Sakari has at some point the series converted yesno and Co. to something which I don't remember the details of. Guys, what do you think? --=20 With Best Regards, Andy Shevchenko