Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp5760537rwl; Tue, 4 Apr 2023 03:18:03 -0700 (PDT) X-Google-Smtp-Source: AKy350auULKrsqNSGLs9AKZ8q0p3gSVv37OFuz8eNPBXm5p3b2IGTbl0FBd0+yeh4GEXVTyN8u2t X-Received: by 2002:a05:6402:2021:b0:502:9c52:447f with SMTP id ay1-20020a056402202100b005029c52447fmr1844476edb.17.1680603483245; Tue, 04 Apr 2023 03:18:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1680603483; cv=none; d=google.com; s=arc-20160816; b=Jsa6p3zwTlwyLlkHpCZV6oB8dRg+jtR10z5zFT0LCEW9amNxaaIVvME/MmR7Nb9EKj ZIt+F49+hXJ4DrKmPREFG/vi94FNhSuqgtem/bGbs5hc0eH8HmEFkZ3xy+f/npX44fJE fXeBS/j9l6JQdB0jkswEtcH1302xlmC4DAvCfaVxQ0Z6Q9qNhtHJOIOiRRkHRpyc10xe 1Z/DatzeJfqZi1uYGdOg6nUBI6HTvT4Jt/F5X7Gki9XSPL0NukUkX/RCIGA9LdmtasqH giK8bK4joets2UCH7rUjqj5CT2OW+cKO5/tQzBp0PjtqHwLyO/J7xdMjIg2fGRWWnPaa U4Ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:dlp-filter:cms-type :content-transfer-encoding:date:message-id:in-reply-to:cc:to:from :sender:reply-to:subject:mime-version:dkim-signature:dkim-filter; bh=/bvlJFcbHikkAZJy8AuiH8tizlWPs95xz6I7mjrIfM8=; b=xl4B2c9S4KhAXDC/162KDPQAvdiez6BlOIUQ363YizX5nWYouCnMLybWXasLFxp1/I fvOz5/aOliMURINOsKqIklObgea2+8VkQ6bHJ6oQMtWUU62C0yYn1QQt8eMCD1C3vo8r SvaUs9PplIZzf9Uy6szF9rZ6hKZgP1MucS0dj2FgjBeftyO2HYR3BGst4xU9pwx6xvJO iiZ7Cs3c7/TI5Go9UxDzijDjMTd/3b4PBPGbvmTaOVRUGkCLDRwkLX72/acErQjh6nK3 4zWL0D30mFm5fnldNx5mV3mUDEtMiU4N3A6siZ/TOFC56E3YufUs39hdXLkQ8xBkvfWp u+yg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=BcEJlHU+; 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=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z13-20020aa7cf8d000000b005021f0d575asi2475775edx.673.2023.04.04.03.17.38; Tue, 04 Apr 2023 03:18:03 -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=@samsung.com header.s=mail20170921 header.b=BcEJlHU+; 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=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234196AbjDDKQR (ORCPT + 99 others); Tue, 4 Apr 2023 06:16:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233732AbjDDKQP (ORCPT ); Tue, 4 Apr 2023 06:16:15 -0400 Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E89942139 for ; Tue, 4 Apr 2023 03:16:10 -0700 (PDT) Received: from epcas1p4.samsung.com (unknown [182.195.41.48]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20230404101607epoutp031712c8252f0100eb474301b62786666a~Ss9u9pd6o0245302453epoutp03R for ; Tue, 4 Apr 2023 10:16:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20230404101607epoutp031712c8252f0100eb474301b62786666a~Ss9u9pd6o0245302453epoutp03R DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1680603367; bh=/bvlJFcbHikkAZJy8AuiH8tizlWPs95xz6I7mjrIfM8=; h=Subject:Reply-To:From:To:CC:In-Reply-To:Date:References:From; b=BcEJlHU+YewGNNfvQxHQSqItI7oEjKbI+snR2E0G0op+eSaKM4FKkxfaNd8ucxU/n ckgGFkPqcQJuFMMnQ8X+5wbEuOI0omq5wxO8/a+N6Mri52ypojpNBHIPtXy1+EC1jt zr+0flGT2/03vN7wLsNIICCgr25qiXpOOfjqDrC0= Received: from epsnrtp4.localdomain (unknown [182.195.42.165]) by epcas1p4.samsung.com (KnoxPortal) with ESMTP id 20230404101606epcas1p4af5476c2bb70ec4dc8ad0f93f8635961~Ss9unB2Wu0123101231epcas1p44; Tue, 4 Apr 2023 10:16:06 +0000 (GMT) Received: from epsmges1p1.samsung.com (unknown [182.195.38.247]) by epsnrtp4.localdomain (Postfix) with ESMTP id 4PrNvV4B98z4x9Px; Tue, 4 Apr 2023 10:16:06 +0000 (GMT) X-AuditID: b6c32a35-d9fff7000000d8eb-42-642bf8e69bdc Received: from epcas1p2.samsung.com ( [182.195.41.46]) by epsmges1p1.samsung.com (Symantec Messaging Gateway) with SMTP id 17.15.55531.6E8FB246; Tue, 4 Apr 2023 19:16:06 +0900 (KST) Mime-Version: 1.0 Subject: RE: [RFC] vsprintf: compile error on %09pK Reply-To: jaewon31.kim@samsung.com Sender: Jaewon Kim From: Jaewon Kim To: Sergey Senozhatsky , Jaewon Kim CC: Petr Mladek , Jaewon Kim , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , GyeongHwan Hong X-Priority: 3 X-Content-Kind-Code: NORMAL In-Reply-To: <20230403153458.GE12892@google.com> X-Drm-Type: N,general X-Msg-Generator: Mail X-Msg-Type: PERSONAL X-Reply-Demand: N Message-ID: <20230404101606epcms1p531389fe1e59013e6dd6e5abebe1fc226@epcms1p5> Date: Tue, 04 Apr 2023 19:16:06 +0900 X-CMS-MailID: 20230404101606epcms1p531389fe1e59013e6dd6e5abebe1fc226 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: SVC_REQ_APPROVE X-CPGSPASS: Y X-CPGSPASS: Y CMS-TYPE: 101P X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAJsWRmVeSWpSXmKPExsWy7bCmnu6zH9opBqsuy1m8PKRpseX3G0aL 7s0zGS16379isri8aw6bxb01/1kt/j/+ymqxe+MiNgcOj9kNF1k8ds66y+6x6dMkdo++LasY PdZvucri8XmTXABbVLZNRmpiSmqRQmpecn5KZl66rZJ3cLxzvKmZgaGuoaWFuZJCXmJuqq2S i0+ArltmDtA9SgpliTmlQKGAxOJiJX07m6L80pJUhYz84hJbpdSClJwCswK94sTc4tK8dL28 1BIrQwMDI1OgwoTsjB3vljAWPGatOH6th6mBcStLFyMnh4SAicTyLV/Zuhi5OIQEdjBKbDk4 kbWLkYODV0BQ4u8OYZAaYQFjiRWHzzOD2EICShJnf1xhh4jrSjR1rwabwyagLfF+wSRWEFtE IEJi3Z2PrCAzmQUeMEr87XkItYxXYkb7UyhbWmL78q2MIDangIHE921XoeKiEjdXv2WHsd8f m88IYYtItN47ywxhC0o8+LmbEWbOn+PP2SDsYollnQ+YIOwaiRXnVkHFzSUa3q4Es3kFfCVm zzoFZrMIqEocWPEWqt5F4v7xhWA2s4C8xPa3c5hB4cAsoCmxfpc+RImixM7fcxlhXmnY+Jsd nc0swCfx7msPK0x8x7wnUOPVJFqefYWKy0j8/feMdQKj0ixESM9CsngWwuIFjMyrGMVSC4pz 01OLDQsM4ZGbnJ+7iRGcNLVMdzBOfPtB7xAjEwfjIUYJDmYlEV7VLq0UId6UxMqq1KL8+KLS nNTiQ4ymQC9PZJYSTc4Hpu28knhDE0sDEzMjEwtjS2MzJXHeL0+1U4QE0hNLUrNTUwtSi2D6 mDg4pRqYbn05mJ8Xd8Fu65PmSJMJqbPYeAz5/is6pMfXXNYPzUlccUhQTlO1OfPyyZ/zlD15 vVMmXQ62MZrrqzfxXU3dr4Qkth9ss5iPcntXX/t9c9kUV7fq5fqBOpNlfx7b/r9rxxwP3heJ C+y+5/xb778yIOv5953SG1+XK8pJR3DmRR9edXl2+9KzCa0LmTqb+l4t0FP1iTnWvf2eQrAk r8odpytqOSeeuzzIdnln4r2CSUL7wXrbS4d51s30fsL3/ZNOuj2j4k3pGQ/M1CXOqy68tWXZ q7rpZk98Vvurct63E53z/qLA1Z7XNXtq3k6fNCFY7W2Q4CUjm+AnmSz+BtNnBCfuEmCf/JXp yLIodRVeJZbijERDLeai4kQAP/c0+iMEAAA= DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20230403104617epcms1p383bacbca705c0d7e4fffca6833050e42 References: <20230403153458.GE12892@google.com> <20230403104617epcms1p383bacbca705c0d7e4fffca6833050e42@epcms1p3> X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS autolearn=unavailable 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 >[..] >> >> Okay, then we can't use %09pK. I've just wondered because %9pK works. > >This is not per printk / kernel, Wformat warnings come from the >compiler. > >Per C11 (7.21.6 6): > 0 For d, i, o, u, x, X, a, A, e, E, f, F, g, and G conversions, leading zeros > (following any indication of sign or base) are used to pad to the field width > rather than performing space padding > ... > For other conversions, the behavior is undefined. > >So using 0 for p should trigger an undefined behavior as far as the >standard C concerned. Unless I'm missing something. Thank your for the information about the leading 0 case. By the way do you know if there is policy for none 0 digit like %9pK? Jaewon Kim