Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7015302rwr; Tue, 2 May 2023 08:23:09 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6IpT35qKDzI86rYZiNfpyeuQe4IsLJJXla/z5/T+FuCXZrUpOos2eCJWcBiZGpx84qKKIx X-Received: by 2002:a05:6a20:914a:b0:e5:58e6:be37 with SMTP id x10-20020a056a20914a00b000e558e6be37mr22629966pzc.61.1683040989569; Tue, 02 May 2023 08:23:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683040989; cv=none; d=google.com; s=arc-20160816; b=BNkna14k99542KuoYJNt80WGE7P+LyrBPnbwIpvzhTWGVYtKIKPCODoPFgqjMgGABP zInoidm+JbvJXmWTS2H3yKih+bDKM/yiVPOtqYZI9k1VXQonX9D8wpPgykA6GP4+og6d rjvE4nHmLmZUMNzRh32eA2Gt9gvxTgWBi81O0KQQJXnD36FGSyyQGccRLcxY8et7GIw2 5gAO0CQd1GNk4YIXKnwZCdur1pj/Rn5Bdi/Z3aE1Fz7RmMdGAd6PMJ2igB1uRzmff5zM r3lcJ+homDZVgWBRiJsItTsjRtPE6plmyzoR7r66vUVO/9ySer24eOtoB+haJ3ZXWRaq KTgA== 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=2UFtU6oUaOr0vAs1hqgYmpK0GvH9Lqd4XIp3l76+ytw=; b=nxWjFZhZ7WusPDaEG4lug/4JPIaFmEZSua9OpoBN62AxfjRe4jz6LKpVycaGkwSjod g/JM0ZKpUyjeEraSfyvn9qQ4Gi9qNmT/qMdxtm4sn7gRPTFsmz2/fW8UVhDxovM2Aaxr b/I0ASc0GdECq50WdxYwAxkbynHmSLHGH3pcLm9yQbKZYQP02ecA6D+0Zfoxeulc3Tw0 y1Izxv6loFgW80L8L0dL/UPycW6kqeOPiJivA3W5XlWiy2UvLa8RGnFhvty3x/o5Juki gc7bcBf+jgCEeya+eGysdygUe97GPg3wy8kpEAvSKynIMmpQh2MPCqayajP9jHW/Jc3d Sv0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=fQDTcAPB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l186-20020a6391c3000000b005215235fbd7si31249101pge.365.2023.05.02.08.22.55; Tue, 02 May 2023 08:23:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=fQDTcAPB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S234279AbjEBPUM (ORCPT + 99 others); Tue, 2 May 2023 11:20:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234127AbjEBPUL (ORCPT ); Tue, 2 May 2023 11:20:11 -0400 Received: from mail-qk1-x72c.google.com (mail-qk1-x72c.google.com [IPv6:2607:f8b0:4864:20::72c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58D912114; Tue, 2 May 2023 08:20:04 -0700 (PDT) Received: by mail-qk1-x72c.google.com with SMTP id af79cd13be357-74e3899037cso187389385a.2; Tue, 02 May 2023 08:20:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1683040803; x=1685632803; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=2UFtU6oUaOr0vAs1hqgYmpK0GvH9Lqd4XIp3l76+ytw=; b=fQDTcAPBcFMm48S9mQhBubJHQt6Rf9v6Z4dCuVwj56NHh0dP3ICDHdXuGTZQ7fhY6f NVwsf2cgqzJ2oTH5E3+K89qprKrCbOGTByhEvyoyI4jzL38CLohj4Pemx6+zekp7fjIC C0wfN5ZD3wmwhLkep7s0ZqbRXr8rVSrCyB0q6Z4CQD4ucuL/biAEe5lz0MuYDAeeY6uB gtH3nfcpQt9FqSzoPBxOU/XU4QDMDDdYIjdcF09D6jE8LNvs6UBNJcq1K4MKCbG+pFI5 zN03kdFjS2HNT9cI3ETBPM+TTHt6uAO2dPGj9O13t7gNwcK/SiD5lyjyY8em9DO5HFop 7wkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683040803; x=1685632803; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2UFtU6oUaOr0vAs1hqgYmpK0GvH9Lqd4XIp3l76+ytw=; b=cn6TO0mZsjLEH7tRgcj+3OQGGY9LeOLGzK3NNWay1fymCvq3XCf9ZD8yBjjz+Qu+eA tQq/+uAfVQExLBOp1JPOeHKhm9lgH/EUh14TaaSlw+4RKTXYlR5IUIaD48PAcx90c+bd h5jT+B8v1xyGAghqhDfWUlfAR7XvTlUmHWH7k9DFbOTGBq9SZfJOt98WlIp44y5NXs7q uJAgGL2ZnO3cU7x6szMXKssyZKEfP+u9UlsowkSZf/U/+c1QUZCGVBueJdmEM2SJ0DqQ 5cTkFi2kgKG2JXPE8hSD8Ts40tG4AjETgGUL8YHjP1ZMz6PSm6T2f3Ae7/CVZj27LfSs BePg== X-Gm-Message-State: AC+VfDyGm0Wp0wHaHbShejfq35RiPFhZlXK8GepEDJVwJJvxt2ajAz0S b72qOisAJKJT3ymWB1YV3y1xzOWGYmVawsuT22M= X-Received: by 2002:a05:6214:124a:b0:5f1:6892:7449 with SMTP id r10-20020a056214124a00b005f168927449mr5506301qvv.28.1683040803341; Tue, 02 May 2023 08:20:03 -0700 (PDT) MIME-Version: 1.0 References: <20230501165450.15352-1-surenb@google.com> <20230501165450.15352-2-surenb@google.com> In-Reply-To: From: Andy Shevchenko Date: Tue, 2 May 2023 18:19:27 +0300 Message-ID: Subject: Re: [PATCH 01/40] lib/string_helpers: Drop space in string_get_size's output To: Kent Overstreet Cc: James Bottomley , Suren Baghdasaryan , akpm@linux-foundation.org, mhocko@suse.com, vbabka@suse.cz, hannes@cmpxchg.org, roman.gushchin@linux.dev, mgorman@suse.de, willy@infradead.org, liam.howlett@oracle.com, corbet@lwn.net, void@manifault.com, peterz@infradead.org, juri.lelli@redhat.com, ldufour@linux.ibm.com, catalin.marinas@arm.com, will@kernel.org, arnd@arndb.de, tglx@linutronix.de, mingo@redhat.com, dave.hansen@linux.intel.com, x86@kernel.org, peterx@redhat.com, david@redhat.com, axboe@kernel.dk, mcgrof@kernel.org, masahiroy@kernel.org, nathan@kernel.org, dennis@kernel.org, tj@kernel.org, muchun.song@linux.dev, rppt@kernel.org, paulmck@kernel.org, pasha.tatashin@soleen.com, yosryahmed@google.com, yuzhao@google.com, dhowells@redhat.com, hughd@google.com, andreyknvl@gmail.com, keescook@chromium.org, ndesaulniers@google.com, gregkh@linuxfoundation.org, ebiggers@google.com, ytcoode@gmail.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, bristot@redhat.com, vschneid@redhat.com, cl@linux.com, penberg@kernel.org, iamjoonsoo.kim@lge.com, 42.hyeyoo@gmail.com, glider@google.com, elver@google.com, dvyukov@google.com, shakeelb@google.com, songmuchun@bytedance.com, jbaron@akamai.com, rientjes@google.com, minchan@google.com, kaleshsingh@google.com, kernel-team@android.com, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, iommu@lists.linux.dev, linux-arch@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-modules@vger.kernel.org, kasan-dev@googlegroups.com, cgroups@vger.kernel.org, Andy Shevchenko , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , "Michael S. Tsirkin" , Jason Wang , =?UTF-8?B?Tm9yYWxmIFRyw6/Cv8K9bm5lcw==?= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 2, 2023 at 9:22=E2=80=AFAM Kent Overstreet wrote: > On Tue, May 02, 2023 at 08:33:57AM +0300, Andy Shevchenko wrote: > > Actually instead of producing zillions of variants, do a %p extension > > to the printf() and that's it. We have, for example, %pt with T and > > with space to follow users that want one or the other variant. Same > > can be done with string_get_size(). > > God no. Any elaboration what's wrong with that? God no for zillion APIs for almost the same. Today you want space, tomorrow some other (special) delimiter. --=20 With Best Regards, Andy Shevchenko