From patchwork Tue Oct 4 17:41:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9362181 X-Patchwork-Delegate: snitzer@redhat.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8CCC5600C8 for ; Tue, 4 Oct 2016 17:44:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8093628B70 for ; Tue, 4 Oct 2016 17:44:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 74CE228B8B; Tue, 4 Oct 2016 17:44:35 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RDNS_NONE, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from mx4-phx2.redhat.com (unknown [209.132.183.25]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 42D2928B70 for ; Tue, 4 Oct 2016 17:44:33 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx4-phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u94Hg7ZO019738; Tue, 4 Oct 2016 13:42:07 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id u94Hg76K000317 for ; Tue, 4 Oct 2016 13:42:07 -0400 Received: from mx1.redhat.com (ext-mx07.extmail.prod.ext.phx2.redhat.com [10.5.110.31]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u94Hg7Qf003212 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Tue, 4 Oct 2016 13:42:07 -0400 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0071.outbound.protection.outlook.com [104.47.36.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 35956C01B129 for ; Tue, 4 Oct 2016 17:42:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sandiskcorp.onmicrosoft.com; s=selector1-sandisk-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=jOUp/WBNSnFwnSrPfaWfgHzUyv09KcBq6pepWzcz8n0=; b=V4rZgLbvnOq5JiETo7wF2pW9Oqi+FICL7BNCm1XhHcsmBTA2p/x/D4lImqbh0xWYGNCjqywOOLKauhLBeDe24XAHCj6eU0r5w4tVpPftz4g5Ue2sG9IJ5BBiOzysdk9MpKUqJIw3vVnvRWTVbzQ5fGUOV63g94g2Cxba7TPdYdU= Received: from CY4PR02CA0030.namprd02.prod.outlook.com (10.175.57.144) by SN1PR02MB1632.namprd02.prod.outlook.com (10.162.128.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.639.5; Tue, 4 Oct 2016 17:42:04 +0000 Received: from BL2FFO11FD028.protection.gbl (2a01:111:f400:7c09::118) by CY4PR02CA0030.outlook.office365.com (2603:10b6:903:117::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.649.16 via Frontend Transport; Tue, 4 Oct 2016 17:42:04 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; redhat.com; dkim=none (message not signed) header.d=none;redhat.com; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.21 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.21; helo=milsmgep15.sandisk.com; Received: from milsmgep15.sandisk.com (63.163.107.21) by BL2FFO11FD028.mail.protection.outlook.com (10.173.161.107) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.629.5 via Frontend Transport; Tue, 4 Oct 2016 17:42:03 +0000 Received: from MILHUBIP04.sdcorp.global.sandisk.com (Unknown_Domain [10.201.67.162]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id B8.4C.26959.787E3F75; Tue, 4 Oct 2016 10:31:51 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.8.100) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Tue, 4 Oct 2016 10:41:59 -0700 X-AuditID: 0ac94369-babff7000001694f-ce-57f3e7871b7b Received: from exp-402881.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 9D.6B.03606.7E9E3F75; Tue, 4 Oct 2016 10:41:59 -0700 (PDT) To: Christophe Varoqui References: <157defac-6527-ab23-92f2-9c1926042885@sandisk.com> From: Bart Van Assche Message-ID: Date: Tue, 4 Oct 2016 10:41:59 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <157defac-6527-ab23-92f2-9c1926042885@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrBLMWRmVeSWpSXmKPExsXCddJ5kW7788/hBvt+6lis+ziXzWLvu9ms Dkwea26fZvV4v+8qWwB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ewa8yHzq9+Zg4nq2S/K91bV5EzWSGq4skNzdvCY05 OLMy66dXEje75oma2duTq6tzzrltfhqQUNt3n9vu2qr2M5zh3Odn7zM+bMG6kjdg5kyT+Vqt r7OZ99ouepG+KeERo67lLu7QtnJ2C9FZkxqn9wr9yl7R1dV143yf5O/VNQ7psilKLMUZiYZa zEXFiQCNDf7V4gEAAA== X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(438002)(189002)(199003)(2270400002)(50986999)(19580395003)(76176999)(97736004)(33646002)(189998001)(4001350100001)(230700001)(229853001)(64126003)(77096005)(68736007)(356003)(36756003)(31696002)(23676002)(11100500001)(86362001)(7846002)(110136003)(305945005)(8676002)(31686004)(50466002)(54356999)(5660300001)(83506001)(4326007)(65806001)(81166006)(81156014)(2950100002)(626004)(2906002)(47776003)(586003)(106466001)(65956001)(8936002)(53416004)(19580405001)(6916009)(92566002)(87936001)(65826007)(69596002); DIR:OUT; SFP:1101; SCL:1; SRVR:SN1PR02MB1632; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD028; 1:wrSWJbzgoRA2JctaFrY8xj4akytA46U+znBku5wovp6ytEXGk6fHI8jSTHjqFZI8vamQ6bpTAIyF+OR9FTx0rrps8+jfar3ew6qT25ucmPVzagVglx7RzTPYERtlL+ofk65+lpeBvENn1pWKNk1ybwRdtG7XNTmKYZySMlVjNt77nLXLa7Hwq6DAMyJc9lwT6NIuKMaeflTjG/t3PTFmflTpOGmVNq4ip/nJXvdMPFiGt/N9bfyh+Hd2AV5wug9isn2Wb0eTi9Gb/5IxG0pQnoGy7sPJC27yuT+AD4ZXzO0xEkdzGcfSw+EEVHA7B1/L8e37weZ+Ch68kVCiMWr9iziCwFMmT1gX0pzTdvCjyEzZvloOU8lmFSXqor1fVGYshaOZGFwFnrEncJTlRtDKEFrmu807MHGQpFxBO6n9t+3esE9ZRkY2fVfCzO8oxtD+EkXXYv7uJyDAaFohwUHZ/DDO8miLDUr4HTBKay/sMKakME0GjREE9KDCRHi5xoy7QZ157pgiAElPX3CVyfjOJg== X-MS-Office365-Filtering-Correlation-Id: fde2ff9b-4c53-4b6c-53b0-08d3ec7dc0bb X-Microsoft-Exchange-Diagnostics: 1; SN1PR02MB1632; 2:ZKTawA+Clah9fF2NLh5Ehhy4VljZX9b9/4mM0eNjr47BuI460tKgPo9cZ6eOvggGKuZGNbne9S7Tmb8QdLpDRCqHStaB8Jn8w2c5E9Xq9z1GMUzgfkG+MsGSK5AE5ru03VwenrbrSdrHH6gqgk6ZitcsfzJZuakET1jMBIxcB79olFqORzb1JoQ0pFQZXh4A; 3:gRZe73cSedd00dGGi4F2tlXZZARIsg8l4CZ4RN5jg/n2yfDT2EjxVyMUJmMrLj/QAjI4N6ZRsUfhqYSU0bL7ba+PHkgjNxk/uQDaQpxa4mFy0SIiD7YnlRt48hCdr9hJPxkRqc/j7yx27oOrhjAINxh+DvRDqq/hmXi00zdazpafH+Y7l/HkiEKfznu5o9U3DD5cfLBwd3WMU1ou5GF/RPwneA7p0ga96aM/Iep3IUwk70kcPIg9FK7InOTYqXgKYKw9BGecd3ASf+Dq0jfukg== X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(8251501002); SRVR:SN1PR02MB1632; X-Microsoft-Exchange-Diagnostics: 1; SN1PR02MB1632; 25:+XjQDfym5aDNZvhRrecx1I5xJcYGybQk5/OMpfZYnh+WnA3qBAYVZCma2ucMaxyDuE0S67av0vQHjmYCIvbW3eoGK3Bw4Ysvcg3i7Bi2X2Hp6aC7JPMg2gM76XwTHMJFpFCq5483E8KUr5WM7wKRozR4kxIJhgbDn1qlQc4EkGnSjE5FzYjkGE8mhQxEdP7tWjRZVa7gddxkh7JXI0tDr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zg7Q6xNyhOySQ8pKL7IRx01dYy6Vtx+MJ5xEHVWIObABQz2+cVuPdViIn0tsVhrKwZFmw34WKAaueuoBPJfrxozT6NcCIAf1ulRB5a5kmDMlms68SVBZItr5w6d+/DRi1MC8actcOUn++Yk2WObUBsBwKHQHlsJ88EIOdJq+OASsF1wnsgJT8DvpgyNlFRzM50Ylzx35OXZs+Un22Ez4aeGX8RFaE/KO7XinZ/bDAwaZH2PeaQwZy45UPlQuQlzfxXF7hhZZbvKHRt6GUrC5hqi X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(13018025)(13016025)(5005006)(8121501046)(10201501046)(3002001)(6055026); SRVR:SN1PR02MB1632; BCL:0; PCL:0; RULEID:; SRVR:SN1PR02MB1632; X-Microsoft-Exchange-Diagnostics: 1; SN1PR02MB1632; 4:sCRanApmagpplmX7P5NI8mjesPb54gCQHmZWOJGBEWu45ECMtejOgkhOX3BklNnLV7/r84mZXz4qNDlKWUPpPWQT5SI4lb7b3CmNxA+9Q5tocXTAfy3Qt5qA1lxYphke4abH2m7gMdB8WPy7zgZ+2pootF4l4qhxSC0M1WwrSMP6clgrlZa+31y7Qr2PLrony99RjuNNN4iMskYBpdfkC78BWS2QDs4QwL2l3lxcyx3kC5NUWTSUzeBlfvT58uUaOqzDOzuJlhbLto3Oew8DRCGfH7HjeCeDy/hSJhrTKRcsbCj2dXuKKskb2WeTc+egAV8Zq7xwvSIm+pYqkB27BA8BmwyUv9Bk/aF5ans1EJLuRBXmVUCRNKsOpcBgNLjHWbCswtOl4PYLXjjRBvOzUoSxQ3lRWeAqHQFiBV8NYLUiVn8KPQlH3GLNYdp0zDPrfQbmarwBl5ryVCkuvpmfHFhTaz8ajPlovmyBNGt0p8Q= X-Forefront-PRVS: 00851CA28B X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtTTjFQUjAyTUIxN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OSbqbTrnXaw9C84o0fN1EFTHRORcl+aSgFKXqhV/ULzrgi6/YaChblSBmw1Tgh86cHO2+sBhr1gjU2qNafLgrs62Ijd1+xAg9E81YflnP5E09KlLGKjSS+A95XIh12wWVyCt/m6I8oZFpknGUCN99Vuha20a3UqygjL1i1s7wBRihTwpL221erShlErBkilic/O+x/jWFVoud6TI2Kx/+ZnsJf/LI+QpMfBcuYmEgea/VCVFrzOACUs0+ycXspmE6y4PS9NR5BXuBvXAFvlvRglDZvo1g==; 5:Eaz7FZJp0KtkvW6La7WNSVAdsoYWgcJd0OeXkW5tIVzdjnIAZf/Sutk23X3euT1fh++TXvBEu45iXtrh5T89gWNMuRhAustl7uf14V9BxSDXp85EoYskoVqeXNywoyEXeqB/K9bodYLWDGCl6hrO+w==; 24:7wmuTwnSdoGZ2rARi/sIF/l4FFAyJu8TgGic8JZ1HJ5UfkHKJs5ml6gV3QqXVmLQIWeP3t0x8Ya/IuCM4IG7vpUKuqD6g7XEY5QQ7YzlnTo=; 7:Q+LXj+13U8826A8bKipIBI9mdeuCoZqz6rYdlGUuYab0tS7S2lxmCFmOyu/Zk/7cqvpxD2DHYON7Ts6Qv/deJcxl8euwdsBrsKAKpikTBnB745/7hp7B9Emob78HSMBX13SF8IkBZHY/Js9IzjCNClXJ7owgPk9bkl81UlR63oxVcTYWzhrLDPSYw0v5szD/xSrj2yjnHOUIjvB+k5Nas6WZSGV1DBvk21mAQlbj04+iqKaSG2WtR5yp4/ZCE23387DMO284rrBXl7J3Y6T8rSRAsrFGQelIBBPzhBMc4VnbhUqv96QrTIYAtr/19+YH SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN1PR02MB1632; 20:2jbyQxFvSj5vHq+iUojy15zuKybg7zF2nSehFfu/ynp2XF9Q0tN9/NIOgAYw4fQ7xJAGFHFeGJprvcrDPSdEB4WtWjdvvZPVQutvaTaBzU4n5PiXkCT7nrM8BhkEObTATWrKJ4M01DFxaDWxUZgAw8gGfFBJPNe+RtojAklEXTG65aUpY1iAwltls9kVeVD2r737kMG03aH/rm6AWI5jCaDuKbKltiEge32LwXc17gRXO73Rf9ddEfSigz2wCFuX X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2016 17:42:03.4665 (UTC) X-MS-Exchange-CrossTenant-Id: fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d; Ip=[63.163.107.21]; Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR02MB1632 X-Greylist: Sender IP whitelisted by DNSRBL, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Tue, 04 Oct 2016 17:42:06 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Tue, 04 Oct 2016 17:42:06 +0000 (UTC) for IP:'104.47.36.71' DOMAIN:'mail-sn1nam02on0071.outbound.protection.outlook.com' HELO:'NAM02-SN1-obe.outbound.protection.outlook.com' FROM:'Bart.VanAssche@sandisk.com' RCPT:'' X-RedHat-Spam-Score: 0.368 (BAYES_50, DCC_REPUT_00_12, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS) 104.47.36.71 mail-sn1nam02on0071.outbound.protection.outlook.com 104.47.36.71 mail-sn1nam02on0071.outbound.protection.outlook.com X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Scanned-By: MIMEDefang 2.78 on 10.5.110.31 X-loop: dm-devel@redhat.com Cc: device-mapper development Subject: [dm-devel] [PATCH 14/15] libmultipath: Micro-optimize snprint_size() X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Virus-Scanned: ClamAV using ClamSMTP Eliminate the stack array fmt[]. An interesting side effect of this patch is that it makes it possible for the compiler to verify whether the snprintf() arguments have a type that is appropriate for the format string. Signed-off-by: Bart Van Assche --- libmultipath/print.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/libmultipath/print.c b/libmultipath/print.c index 94d6384..9aa41ad 100644 --- a/libmultipath/print.c +++ b/libmultipath/print.c @@ -73,7 +73,6 @@ static int snprint_size (char * buff, size_t len, unsigned long long size) { float s = (float)(size >> 1); /* start with KB */ - char fmt[6] = {}; char units[] = {'K','M','G','T','P'}; char *u = units; @@ -81,12 +80,8 @@ snprint_size (char * buff, size_t len, unsigned long long size) s = s / 1024; u++; } - if (s < 10) - snprintf(fmt, 6, "%%.1f%c", *u); - else - snprintf(fmt, 6, "%%.0f%c", *u); - return snprintf(buff, len, fmt, s); + return snprintf(buff, len, "%.*f%c", s < 10, s, *u); } /*