Received: by 10.223.185.116 with SMTP id b49csp748384wrg; Wed, 21 Feb 2018 06:20:53 -0800 (PST) X-Google-Smtp-Source: AH8x227DDl2F/YUNMXiftUovON0m2mP7dD4/RuPk5zPh85Bg/2Fg9Vk9RK95bHdfv7zYjSXrdWXL X-Received: by 10.99.125.79 with SMTP id m15mr2828598pgn.428.1519222853332; Wed, 21 Feb 2018 06:20:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519222853; cv=none; d=google.com; s=arc-20160816; b=F9N8bD6dB90qVYa+UkTtO1a2t3QHz0Vi1eSLO3Vba2mctZDIgZSXemrciEodadGhUt YZBXzAstyw6Wuss1nbVwrVhuK1kkIaqoPMYIIhF+llz4XWg6ZFhqU2peHzNfEx2dtupa tNSXYwpJshZwyQVUigy7e6XpjJGQQ49v4xWd+t0ELGnZq0tZ5bq4Oois7BBPX7VEEob+ Btt0SJ8+ccuf7n/boLc3PY7l5x66v+DEVINs7lKpbr4dPvDXW5Sfvk2XT2npy6RUSlDx URg943DG7TmF880v5QY5wmgFLopzaKIaHcoetjXS+SAfwTQmKm6uYbbc2LnFICKBqCUN /oZQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=4uZsIEHeOmUcBwaUv233PXHC81LBBDxs1yfCPr7nQs8=; b=NryhFzlMkvnMhxvr+W/qd1ygxVUHr5ZTgf72l3lcq5Bh1OHjCN5HryRHv5aCc/SzOi uTLH7ME3h85LzFrowlmtLzCxzy6v/IbD+fImcSurCoxOzFnnsitxtEl0ujMkyrfdCW5j BzB/AzV2Na8ecTZIF4n3OgmEcYtkReevovm4MedXu3xvhiHnyYquB/4KQNxDNQb/2CXe Nyk5wNgnJREPu58rWUUGSLJvj1wnfU0UZY1e4NVoRWqDMS22nC+hi+9gcxV8hi/5fwJ7 Qz7X6VXdUbpbfXcP7/x/+4ekzZOHC5XdXScOI5ncA18Cilj5h1kC5uoqbJq91aFimrAM e0Vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=ot/Kh6VI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n11si2416254pgu.96.2018.02.21.06.20.38; Wed, 21 Feb 2018 06:20:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=ot/Kh6VI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937540AbeBUOTR (ORCPT + 99 others); Wed, 21 Feb 2018 09:19:17 -0500 Received: from mail-qt0-f195.google.com ([209.85.216.195]:32962 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937530AbeBUOTO (ORCPT ); Wed, 21 Feb 2018 09:19:14 -0500 Received: by mail-qt0-f195.google.com with SMTP id d8so2072402qtm.0; Wed, 21 Feb 2018 06:19:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=4uZsIEHeOmUcBwaUv233PXHC81LBBDxs1yfCPr7nQs8=; b=ot/Kh6VIeRWYwfKapqcZFN8DTRsy0DqKDqjzBb4tlrpOyS9qN4I/q97yNGiQalWGCE 9OH6FwPS+b/Xvdu2hXFDWJYrBKm2qglyIVZB5gfKqFJc08OZBSi9aIBcZaTytQtq0uwt 3UMtPPRzHvbacB+H5eU/4r9vMZ9IrhaXyl02snLtaabQS2YJdI+7TAJUuRVy2PRQH8QL PGJXK+jY3nUN0wDVX1LWpSY7esc9tMwQoUwFl65Op/pAugxLTCz2wms3Md3N6zCMGISk Vl7/JSDybpjPPokGFz1EiGzUItNRP1XdlO/7X6R6FhMO8gpR9T6juM1nU7jEhOQpZdEV tDcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=4uZsIEHeOmUcBwaUv233PXHC81LBBDxs1yfCPr7nQs8=; b=lL+gBFOjXinzUXHw6/9+nRo5UI18ZtuH7R7yHGWeh3UeljvuAUKSJuKI0TLVcUbxwc 5B06jumeIVwvLpIeXzwZhP6Y3z6cd7IBg5MgA2LgY73C60tW3rtZwGWY8XDfRYA4Cc5o i4kocEW5iZfOuHf1o9/+M0/QOEzIYPjvB6GlnsUs4YuX/yGCNxY7kzh59DW1bwvJu0iZ Yrv6ipSYaLYtplrXOtjoGBezFla/k4GOk2+O8SxGv0MexF959Gtl03MvlF6HbtYVKVU/ iry8dihdpHCsd4qk/lfxsK579EMlIFNaZ9uZSA0liP3cALw8fAi5qYPO/+0BRWQlc2j5 xWNg== X-Gm-Message-State: APf1xPCzNZ/lSkLNspQ2hJhrxMg40P5x0fpF5rprp7FTCiUnvhxluV4k tuxCAqmhmE0Kwp6rka3LagLtbe2MTZbSIigePAU= X-Received: by 10.200.81.215 with SMTP id d23mr5230110qtn.272.1519222753732; Wed, 21 Feb 2018 06:19:13 -0800 (PST) MIME-Version: 1.0 Received: by 10.200.47.219 with HTTP; Wed, 21 Feb 2018 06:19:13 -0800 (PST) In-Reply-To: <1519219410.10722.25.camel@linux.intel.com> References: <20180220214400.66749-1-andriy.shevchenko@linux.intel.com> <20180220214400.66749-2-andriy.shevchenko@linux.intel.com> <1519170907.4326.17.camel@perches.com> <1eac0dc6-93b0-2e01-075f-cf62c85318c5@prevas.dk> <1519219410.10722.25.camel@linux.intel.com> From: Geert Uytterhoeven Date: Wed, 21 Feb 2018 15:19:13 +0100 X-Google-Sender-Auth: 6tU2fQQPZaaIeNZvnuPG4h-FGg0 Message-ID: Subject: Re: [PATCH v2 01/21] lib/vsprintf: Print time and date in human readable format via %pt To: Andy Shevchenko Cc: Rasmus Villemoes , Joe Perches , Greg Kroah-Hartman , Andrew Morton , Linux Kernel Mailing List , Alessandro Zummo , Alexandre Belloni , linux-rtc@vger.kernel.org, Arnd Bergmann , Mark Salyzyn , Bartlomiej Zolnierkiewicz , Dmitry Torokhov , Guan Xuetao , Ingo Molnar , Jason Wessel , Jonathan Corbet , Jonathan Hunter , Krzysztof Kozlowski , "Rafael J. Wysocki" , Thierry Reding Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 21, 2018 at 2:23 PM, Andy Shevchenko wrote: > On Wed, 2018-02-21 at 08:38 +0100, Rasmus Villemoes wrote: >> On 2018-02-21 00:55, Joe Perches wrote: >> > On Tue, 2018-02-20 at 23:43 +0200, Andy Shevchenko wrote: >> > > There are users which print time and date represented by content >> > > of >> > > struct rtc_time in human readable format. >> > > >> > > Instead of open coding that each time introduce %ptR[dt][rv] >> > > specifier. >> > > >> > > Note, users have to select PRINTK_PEXT_TIMEDATE option in a >> > > Kconfig. >> > >> > Not sure this is a great option. >> > Not just the name, the need to select it. >> >> Bikeshedding first: If you do keep the config option, please use >> PRINTF, >> not PRINTK - vsprintf can be and is used by lots of code other than >> printk. > > OK. > >> Well, on the one hand, I like to reduce the size of the kernel when >> possible and ideally make all new functionality guarded by config >> options, but OTOH, how much does compiling out the datetime formatters >> really save? > > https://lists.01.org/pipermail/kbuild-all/2017-June/034950.html > > I understand that half a year time allows us to increase kernel text > size by 750+ bytes unconditionally. > > I would really like to not use any option. Agreed. FTR, growth of my atari_defconfig kernel between v4.7 and v4.15: add/remove: 351/155 grow/shrink: 691/429 up/down: 63095/-38665 (24430) add/remove: 394/156 grow/shrink: 595/709 up/down: 61173/-31092 (30081) add/remove: 1315/711 grow/shrink: 1269/442 up/down: 172871/-92075 (80796) add/remove: 525/266 grow/shrink: 914/510 up/down: 116115/-46240 (69875) add/remove: 443/222 grow/shrink: 906/456 up/down: 77807/-40657 (37150) add/remove: 536/296 grow/shrink: 1043/652 up/down: 97366/-65459 (31907) add/remove: 413/176 grow/shrink: 711/479 up/down: 75678/-41356 (34322) add/remove: 311/145 grow/shrink: 898/438 up/down: 51655/-26851 (24804) Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds