From patchwork Thu May 27 22:20:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 1484903 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=prevas.dk header.i=@prevas.dk header.a=rsa-sha256 header.s=selector1 header.b=T4gB1Qmi; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Frj2W3SGHz9sCD for ; Fri, 28 May 2021 08:21:07 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 46F2882CFE; Fri, 28 May 2021 00:21:00 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=prevas.dk Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=prevas.dk header.i=@prevas.dk header.b="T4gB1Qmi"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AC8BB82CFA; Fri, 28 May 2021 00:20:58 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FORGED_SPF_HELO,MSGID_FROM_MTA_HEADER, SPF_HELO_PASS autolearn=no autolearn_force=no version=3.4.2 Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on072e.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe1e::72e]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1C53982CFA for ; Fri, 28 May 2021 00:20:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=reject dis=none) header.from=prevas.dk Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=rasmus.villemoes@prevas.dk ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hd2hSAushJ6/7BF7DG9r4Zcwy6UFrGKZuIfhFOPgpKgftyjm+QYNGAIEIEi0Na/H1LYqB3NPh2UyYKfYhAfgDF/jjiYQ3k6cyuYg5J0t3Euhfin+AggZcWBXNRzY6VlYYQCQZD8Vc1QISSfpW9U82YK/3zg1rNVmQjn1mmkwX3FW+KJae9JR1Q5al12Vo2CRGQZjVMVOoCTf2QhZbS3o+EQrtZcDezrTf44HMZu06+RZXk+WigM86YggGjNVqBEBwyP37LvmoCyNh8zRxqlLtjLQYlf4XkR3Z5QtEjh8CagLEZJj/iqbuyJYF7DlgAIn9jcW9QunNRSjTga5fVj2Uw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xAWAyM+bVbunPuCfpt0Q3itr4NXgk9eXeIiOORDQYoo=; b=Lahhz6QGszYj41u/3vj910gDoJDFOWJqDjT3Xar09u7mwRYqIvFwIDY9pnN3JA7NHsUeFY2L8aMchzUui7/ttoEKJx2bRbMIVIzumuQFbIctd9YhQ0AE7jyavJw+O0j0Cl2Z4X4p5A/nwBzLg5v39LcAsXlhzc8F/nKV+q/rIv4msA3B3ZfW+CTzTmeBHXhMLkSpul4EJ1sgll2qDzEKqBdrgk03tdi7gDtBfOrhIL2LMusrZy3fRf/Be92tjNTXuM2RumtP9MC/UWuJWkIJWnEKzD8jXkZWe6R0t903wNEORWK+8PahKQo6juO9gnLUtYtOua9IlrpyGWV/+w3c4g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=prevas.dk; dmarc=pass action=none header.from=prevas.dk; dkim=pass header.d=prevas.dk; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=prevas.dk; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xAWAyM+bVbunPuCfpt0Q3itr4NXgk9eXeIiOORDQYoo=; b=T4gB1QmiqCBZL9hOAGaFG371RxZx6t9sRd+IHEd25dFDirQrowte4E04P4S0KaKpkVg82Sd8XAg1Jy24QBvgXL5pBSVWWYewr0+v9EEgAVSdnRbzf+sfeGON7FMhKnPrVoyRA/FAA0L9+0/sFYQNBkz7AElqN5yCwFs/BnGGog8= Authentication-Results: lists.denx.de; dkim=none (message not signed) header.d=none;lists.denx.de; dmarc=none action=none header.from=prevas.dk; Received: from AM0PR10MB1874.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:3f::10) by AM0PR10MB3444.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:156::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4173.24; Thu, 27 May 2021 22:20:55 +0000 Received: from AM0PR10MB1874.EURPRD10.PROD.OUTLOOK.COM ([fe80::888d:190b:b3b5:1ad2]) by AM0PR10MB1874.EURPRD10.PROD.OUTLOOK.COM ([fe80::888d:190b:b3b5:1ad2%3]) with mapi id 15.20.4129.036; Thu, 27 May 2021 22:20:55 +0000 From: Rasmus Villemoes To: u-boot@lists.denx.de Cc: Heinrich Schuchardt , Simon Glass , Tom Rini , Rasmus Villemoes Subject: [PATCH v2 0/3] trivial printf patches Date: Fri, 28 May 2021 00:20:43 +0200 Message-Id: <20210527222046.1276246-1-rasmus.villemoes@prevas.dk> X-Mailer: git-send-email 2.31.1 X-Originating-IP: [80.208.74.47] X-ClientProxiedBy: AM3PR05CA0155.eurprd05.prod.outlook.com (2603:10a6:207:3::33) To AM0PR10MB1874.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:3f::10) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from prevas-ravi.prevas.se (80.208.74.47) by AM3PR05CA0155.eurprd05.prod.outlook.com (2603:10a6:207:3::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4173.20 via Frontend Transport; Thu, 27 May 2021 22:20:54 +0000 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 32526ee8-b1bf-4284-62e3-08d9215db1da X-MS-TrafficTypeDiagnostic: AM0PR10MB3444: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5797; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: gXtznIJa4PQZtgDmTBbBasENccoS+GJ1oQLidecl0WtMeP8C60HqI1v23D728f1eg/Iw9DLDV58gv5cMXba+yqOFUYVp2PqQOXWL4haDlarv0ayNELaU4tUiBe8PH/AmXz3QEMeGz0M87fTz9Ra7lW4nBcbtde8s4eis9M6ED2vSOp20/6OmCKiRYtdxV5uk9dvmYiO56lsW0Yc14IkAlvg0egZZXD0Q4RnBbETazBPc/Ige9qhQzT7sO6orp5AvHrG3w/gm2mHJjeFl45jxwSzLOxM9tVlBjQMlGvqwXwrX9h5ikO7YNmmap4sYjyjvDrhgSOVfe9uQjlKX8+1ZV0mE1UZDL+ZF/TZDEsr1yemTZFUunantcSHib1KxJqEvk8zpaJPCS8kcbWermeumJToexKnJ75XtuHvZ/EeAqXgAZcDb1kYcUmQOgWHa6WNv8qW66e4wUpkRDbENVdw32uAbGRvDg9fCnOOqqjOBxvV41Yte88TpIcyHfxiI3o9GbXD89rUtjZrqT2gOvQt/aviMEWe5fMtyLFCp7NwfGhB4Amk7jmbvcD+7naOx75CZ7vQEAlHRKe2xHfZUj9clgCB83FnWwwlaYGu0BeMTMcRpoESlYKXhHRA6MB+sIEtEGa3F52OReQzxURpOaNDLzg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0PR10MB1874.EURPRD10.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(376002)(346002)(136003)(396003)(366004)(39830400003)(66556008)(5660300002)(2906002)(83380400001)(44832011)(6512007)(54906003)(6666004)(8976002)(956004)(26005)(2616005)(36756003)(52116002)(6506007)(8676002)(8936002)(16526019)(186003)(38350700002)(38100700002)(4326008)(1076003)(66946007)(316002)(4744005)(6486002)(107886003)(6916009)(66476007)(478600001)(86362001); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: 4rynH5pnm1i6UxWjosCRr421ytLrFExk+s/9+VHL6m3j2kZvyYULdMkMIQ72cruKuwkHOzHCsyPzU/QPXFk36nUMKnZTsxu3zgUNi+bRnIYiES9GTzP52wyoPvTMY3GlZ8p8qBAxTHl8va3bn06m6N3DGt57n5bxTO++zyG94DYXgEDm3kmvIIpVuUO7ZGZGKpd84xYrpAQOeEymb6Rbux/nhACC5skMtIaDvgbJ5j1GcT20f8vuVVjTzo7pE+yIVm31CzVVg/6GooFRjgHI2Zhj7Vj5MzQdOPbBLNCJi1KBz5xP82EfMPqvTV+paQOKOWXtcBBjsmSkJ71Cedlsrf1eoSRldDistuBueNg/z/XfNgzm/fy2vXoXpKzQJDIcfghPCml+fa9h+nN2bST650ec6eIHF9IonPJMGp6LV+b2UcWqsqCv0jBpaQAo/n0xLOy0aiiqjlU6Jbuq/iWgSUEPJJFa0p0tk+2SseiVkLkK4jJWStcnHVeEa0rLLdwMfFQYO8+LFMD/plYgHuxYfTR5gejnw6ZJfoFDef1C8iU5zUtaZAW7kULJXb+sX0THgUI0tVdzZuBl/1cyp08fXsBzmWztMeTJ3dlay0XWJStnw3RgElyh5WP0tx49L5cpKMviuv1/ZzlxwjGJmT3HakIL0xizT6ThavH+/MrnIHTVj5gus4EjxEPmDSP5DQG6OSPD75EgkcnMJ9C0QzU2pDDGuShnSLvZxADSC74NU8Kp39I0awNMaFhGlqrLnLBhqr7XZ0oEc9n+aGDUd1ir2tGomRvkm1SFujAwFvpJspa3MzRFX3bBholpux1t6YQ8Rfyv9L0VuycsxFJtesbf2c7Ju1pfsOWNwrXU63jMJ8v5oVxcybI8fHja/nnsPysBnUVoAk15lKEvOkQFOA8Z4Cv3IP4HSveUPVv5wEkXcfr4ZR7o2J0mOSkUMXKc9znSewRCyehHv+PX4cvQoeQNfEI8tTblDSWCm2wzcRqN5Mty7vyiA+pWxmci4S8YiU1KE8MasoMEsecGwH+IBM1fV6gfqzTjKBnOb41WYdkYWI8Uw9P8b4jpgFfHWiYdlE7wvcdrF40n7oTANLKRx8EAS4k6D6Yo8AtRZLw5rM4nIelzmA8fEG0d7h4wmFGuFHv0qVlig5E/HM8rMj2HBrX0B0KPg1jgN2lrkD+D8WqliBpoc6JbQr6gp5RPpA7y5n5ftrfj76r6CBgcDpnCJ91grC0hWVAz9Z4FycJrzrS8QbxkSOiMSe8DePH4s9DnSVrZL2xLlfgaxJonouh5aKziL8g+psWJPRFmNxGgZuqmjtmiiSPMo2sdQnjhj844nL0+ X-OriginatorOrg: prevas.dk X-MS-Exchange-CrossTenant-Network-Message-Id: 32526ee8-b1bf-4284-62e3-08d9215db1da X-MS-Exchange-CrossTenant-AuthSource: AM0PR10MB1874.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 May 2021 22:20:55.0319 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: d350cf71-778d-4780-88f5-071a4cb1ed61 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: saQwFdmjb8rzwl5yLm4hOeE+1LwYH0Blbk0lTE5Ac4A0Xfza90eqFBzy04waiRbbiluE8PZAR1zAzlkdek4m1gGpZ62ZqbLZngU1WoSI4pw= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR10MB3444 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean Apparently, improving the QoI of vsnprintf() is too controversial. So here are the uncontended parts of that series with Simon's R-bs added. It's not a huge image reduction: $ ../linux/scripts/bloat-o-meter lib/vsprintf.o.{0,1} add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-218 (-218) Function old new delta printf 220 152 -68 vsnprintf_internal 2124 1974 -150 Total: Before=4878, After=4660, chg -4.47% but still worth it. Rasmus Villemoes (3): lib/vsprintf.c: implement printf() in terms of vprintf() lib/vsprintf.c: remove stale comment lib/vsprintf.c: remove unused ip6_addr_string() lib/vsprintf.c | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-)