Received: by 2002:a5d:925a:0:0:0:0:0 with SMTP id e26csp1190340iol; Fri, 10 Jun 2022 02:09:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYphKP6WwB3uBtwpUg3cEQQAuwex7rDlOsp/pkSBUknvsRFc90IyFJqV402nZjuI6cTcEC X-Received: by 2002:a17:906:804a:b0:70c:1dac:9bb8 with SMTP id x10-20020a170906804a00b0070c1dac9bb8mr37197274ejw.92.1654852188417; Fri, 10 Jun 2022 02:09:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654852188; cv=none; d=google.com; s=arc-20160816; b=n/Y3FhRe/mxOZvtaHj/ZyDqzr5iFsj47tPzxFT/ft82DN1u6JaeQTiD30kcb4tLOkM UA+GQYy1iEYtcsotmCgDKrVKPJrMb0zaBeet+hywReVrHAyvJxVLjp9iOZqNLUfMo5F+ L0fol5pyTgc8LMkQ7cTk9gsCFMMWeb88JqKG/kMIVDjgluGy9hiURuP7Pr1GLGMgz5DG dguANnA+H7HFxAByOKE5wKDltE5wef8/sY81UFShWgiMP0S5FrWsJ33d6ZcbInGZ1y0I YpCnOixxrTbR/usG5wqP3NOsTA5jN8Oyom7QRy3qdSQxvYucIDHLlmfPIRoVZWGHXwIX iaeA== 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 :user-agent:references:message-id:in-reply-to:subject:cc:to:from :date; bh=ncRWd2L52A+VphiCBk5vxKLdT57ynA6SX9ETZhhBmoU=; b=D80RsFO3DL85Sd8jGXv9beGFA6+pYg+iuBWfluu73It++cXd5F2KKd4vEhNZzAJUYU 4VsHLiqpid5+jp2hQzDbrYJ+6zEaSiJ4rBpsYzMzzwfiT6l4d5FTG0loqAaydV1E9aZf Vxli7mjGVgeBhtppPmRNgxgOG3+tHMfXGoiREYapQ9OOwO/0N4RiV5IZFkm+kDR3mRpP sNLI6zBwjV/LB7B6EJruHPEIVZ3lvCwYVDiCY/d11ikvDR/GXYjnZP42jTrNPU6Q+Dhb Dm7IHu2mNBSqPEhkfxGHb9wFo+SAaNIsebGzELvDrE1oCyhjmM8GZH5bWQt/+cbLOLcN 0U8w== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f22-20020a50fc96000000b0042afd968660si6587948edq.64.2022.06.10.02.09.23; Fri, 10 Jun 2022 02:09:48 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346701AbiFJIev (ORCPT + 99 others); Fri, 10 Jun 2022 04:34:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347743AbiFJIeW (ORCPT ); Fri, 10 Jun 2022 04:34:22 -0400 Received: from a3.inai.de (a3.inai.de [IPv6:2a01:4f8:10b:45d8::f5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC2091EC7F; Fri, 10 Jun 2022 01:32:14 -0700 (PDT) Received: by a3.inai.de (Postfix, from userid 25121) id 43D6D5872870F; Fri, 10 Jun 2022 10:32:13 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by a3.inai.de (Postfix) with ESMTP id 4326A60C247DA; Fri, 10 Jun 2022 10:32:13 +0200 (CEST) Date: Fri, 10 Jun 2022 10:32:13 +0200 (CEST) From: Jan Engelhardt To: David Laight cc: 'Bill Wendling' , Andrew Morton , Bill Wendling , Tony Luck , Borislav Petkov , Thomas Gleixner , Ingo Molnar , Dave Hansen , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , "H. Peter Anvin" , Phillip Potter , Arnd Bergmann , Greg Kroah-Hartman , "Rafael J. Wysocki" , Jan Kara , Pablo Neira Ayuso , Jozsef Kadlecsik , Florian Westphal , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Jaroslav Kysela , Takashi Iwai , Nathan Chancellor , Nick Desaulniers , Tom Rix , Ross Philipson , Daniel Kiper , "linux-edac@vger.kernel.org" , LKML , ACPI Devel Maling List , "linux-mm@kvack.org" , "netfilter-devel@vger.kernel.org" , "coreteam@netfilter.org" , Networking , "alsa-devel@alsa-project.org" , clang-built-linux Subject: RE: [PATCH 00/12] Clang -Wformat warning fixes In-Reply-To: <01da36bfd13e421aadb2eff661e7a959@AcuMS.aculab.com> Message-ID: References: <20220609221702.347522-1-morbo@google.com> <20220609152527.4ad7862d4126e276e6f76315@linux-foundation.org> <01da36bfd13e421aadb2eff661e7a959@AcuMS.aculab.com> User-Agent: Alpine 2.25 (LSU 592 2021-09-18) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,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 Friday 2022-06-10 10:17, David Laight wrote: >> >> Calling a "printf" style function is already insanely expensive. :-) I >> understand that it's not okay blithely to increase runtime resources >> simply because it's already slow, but in this case it's worthwhile. > >Yep, IMHO definitely should be fixed. >It is even possible that using "%s" is faster because the printf >code doesn't have to scan the string for format effectors. I see no special handling; the vsnprintf function just loops over fmt as usual and I see no special casing of fmt by e.g. strcmp(fmt, "%s") == 0 to take a shortcut.