Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp1244103pxb; Fri, 21 Jan 2022 13:12:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJznpuAqcDsqw6dcQc8bGN9x5PgLP+x0ZHrTnaJWx+/FBbhKe8V6bYQVelSl/xEVCTifRMr8 X-Received: by 2002:a17:90b:1d8b:: with SMTP id pf11mr2495865pjb.119.1642799557549; Fri, 21 Jan 2022 13:12:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642799557; cv=none; d=google.com; s=arc-20160816; b=jR+32hhT05wi/HWxQ0S7sMT7GcJTYBz5e42m1qZ8P9wDCXOTsA0vSkRl7hLUFQnrGH rq1RZFoKu+k+fwpZGAXDbw6U5oWrdU6q6zaU4mklC7GY2LnjnLVefgmVxbV8+YUkwgBH qKjEnHprULkplsbR8320vtNIo8unW96sdGUAQcI+8lpcY2G/BDz7HqlJYnsQOZIQe3lY +LOV6i3jiZ8SDxcpr1N7eKF4GnVLo0NWw6O/1BdT5AFypnBBMoC40fmNOWecR8BaUbc4 xFH6n5F72+CTBS/+u/Mr5BlVlJy5ePFu8YiAvNS2G7qX/YZVbwoLZ2YKfMhyjKxBWvIL Q37w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :mime-version:accept-language:in-reply-to:references:message-id:date :thread-index:thread-topic:subject:cc:to:from; bh=8YC/+2y9QWThWhsjv0vQeRhOj8DT9yIhYC5By4RmE7g=; b=qJ8r2k3k1v5kGNe+RCyiM/euyo35jbY89UFD2rerXzxe3caghZSetbJknNLlnAIpS8 vfbRKVkrre5mS4Ebm7gyy6ITZKZnac4wLyUSYdhQunysUNeLuQYXCtx0o1WkCTzU2Fzz 75IzvwovUdAj+4fN2inKePiqcm15S4xhWcI4Gg2zMhXytWAVEA4PsA5RF+pERVcytPPA viVUc05f9UEnRaOpwj+A5+wS7CMccNLebboDmcTS+ThW2RNmIpuR3Hx0AkRnhKKOiiOh 0+w6/yxJuYgJ/naQCRfIDiNx+DGbK7CHAHqeJPaWQUn2LPukQK4kWhoY33MHrcSd/zV1 TAvg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id v64si1603317pgd.505.2022.01.21.13.12.25; Fri, 21 Jan 2022 13:12:37 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=aculab.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236486AbiATJMH convert rfc822-to-8bit (ORCPT + 99 others); Thu, 20 Jan 2022 04:12:07 -0500 Received: from eu-smtp-delivery-151.mimecast.com ([185.58.86.151]:48030 "EHLO eu-smtp-delivery-151.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230202AbiATJMF (ORCPT ); Thu, 20 Jan 2022 04:12:05 -0500 Received: from AcuMS.aculab.com (156.67.243.121 [156.67.243.121]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id uk-mta-19-bOMb94O0NjOs2-b-Mij-8A-1; Thu, 20 Jan 2022 09:12:03 +0000 X-MC-Unique: bOMb94O0NjOs2-b-Mij-8A-1 Received: from AcuMS.Aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) by AcuMS.aculab.com (fd9f:af1c:a25b:0:994c:f5c2:35d6:9b65) with Microsoft SMTP Server (TLS) id 15.0.1497.28; Thu, 20 Jan 2022 09:12:00 +0000 Received: from AcuMS.Aculab.com ([fe80::994c:f5c2:35d6:9b65]) by AcuMS.aculab.com ([fe80::994c:f5c2:35d6:9b65%12]) with mapi id 15.00.1497.028; Thu, 20 Jan 2022 09:12:00 +0000 From: David Laight To: 'Petr Mladek' , Jani Nikula 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 , =?iso-8859-1?Q?Christian_K=F6nig?= , Chris Wilson , Daniel Vetter , David Airlie , "David S . Miller" , Emma Anholt , Eryk Brol , Francis Laniel , Greg Kroah-Hartman , Harry Wentland , "Jakub Kicinski" , Joonas Lahtinen , Julia Lawall , Kentaro Takeda , Leo Li , "Mikita Lipski" , Rahul Lakkireddy , Raju Rangoju , "Rasmus Villemoes" , Rodrigo Vivi , Sakari Ailus , Sergey Senozhatsky , Steven Rostedt , "Vishal Kulkarni" Subject: RE: [PATCH 0/3] lib/string_helpers: Add a few string helpers Thread-Topic: [PATCH 0/3] lib/string_helpers: Add a few string helpers Thread-Index: AQHYDdkRJfmi1u3vzker6akA52hdRqxrnz8Q Date: Thu, 20 Jan 2022 09:12:00 +0000 Message-ID: References: <20220119072450.2890107-1-lucas.demarchi@intel.com> <87tudzbykz.fsf@intel.com> In-Reply-To: Accept-Language: en-GB, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.202.205.107] MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=C51A453 smtp.mailfrom=david.laight@aculab.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: aculab.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ... > Yeah, and I am sorry for bikeshedding. Honestly, I do not know what is > better. This is why I do not want to block this series when others > like this. > > My main motivation is to point out that: > > enabledisable(enable) > > might be, for some people, more eye bleeding than > > enable ? "enable" : "disable" Indeed - you need to look the former up, wasting brain time. > The problem is not that visible with yesno() and onoff(). But as you said, > onoff() confliscts with variable names. And enabledisable() sucks. > As a result, there is a non-trivial risk of two mass changes: > > now: > > - contition ? "yes" : "no" > + yesno(condition) > > a few moths later: > > - yesno(condition) > + str_yes_no(condition) Followed by: - str_yes_no(x) + no_yes_str(x) David - Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK Registration No: 1397386 (Wales)