Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751632AbdFINmH (ORCPT ); Fri, 9 Jun 2017 09:42:07 -0400 Received: from mail-wr0-f173.google.com ([209.85.128.173]:36156 "EHLO mail-wr0-f173.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751566AbdFINmF (ORCPT ); Fri, 9 Jun 2017 09:42:05 -0400 Subject: Re: [PATCH v1 24/25] kdb: Switch to use %pt To: Andy Shevchenko , Rasmus Villemoes , Greg Kroah-Hartman , Andrew Morton , linux-kernel@vger.kernel.org, Alessandro Zummo , Alexandre Belloni , linux-rtc@vger.kernel.org Cc: Jason Wessel , Ingo Molnar References: <20170608134811.60786-1-andriy.shevchenko@linux.intel.com> <20170608134811.60786-25-andriy.shevchenko@linux.intel.com> From: Daniel Thompson Message-ID: <94f7a93e-8136-df53-b0f2-6ef8d630f74f@linaro.org> Date: Fri, 9 Jun 2017 14:42:01 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.0 MIME-Version: 1.0 In-Reply-To: <20170608134811.60786-25-andriy.shevchenko@linux.intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1186 Lines: 33 On 08/06/17 14:48, Andy Shevchenko wrote: > Use %pt instead of open coded variant to print content of > struct rtc_time in human readable format. > > Cc: Jason Wessel > Cc: Ingo Molnar > Signed-off-by: Andy Shevchenko Reviewed-by: Daniel Thompson > --- > kernel/debug/kdb/kdb_main.c | 7 +------ > 1 file changed, 1 insertion(+), 6 deletions(-) > > diff --git a/kernel/debug/kdb/kdb_main.c b/kernel/debug/kdb/kdb_main.c > index c8146d53ca67..2a6f12be79d8 100644 > --- a/kernel/debug/kdb/kdb_main.c > +++ b/kernel/debug/kdb/kdb_main.c > @@ -2556,12 +2556,7 @@ static int kdb_summary(int argc, const char **argv) > > now = __current_kernel_time(); > kdb_gmtime(&now, &tm); > - kdb_printf("date %04d-%02d-%02d %02d:%02d:%02d " > - "tz_minuteswest %d\n", > - 1900+tm.tm_year, tm.tm_mon+1, tm.tm_mday, > - tm.tm_hour, tm.tm_min, tm.tm_sec, > - sys_tz.tz_minuteswest); > - > + kdb_printf("date %pt tz_minuteswest %d\n", &tm, sys_tz.tz_minuteswest); > kdb_sysinfo(&val); > kdb_printf("uptime "); > if (val.uptime > (24*60*60)) { >