From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757449AbdJMHmt (ORCPT ); Fri, 13 Oct 2017 03:42:49 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:33127 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753135AbdJMHmr (ORCPT ); Fri, 13 Oct 2017 03:42:47 -0400 X-Google-Smtp-Source: ABhQp+SmdRDyl/nLY4gwT/DTV4CS2R6Er+PELYu4yy1T0hv4AVE+0fgsgbj4A95Ue7PZvXyvHqeoXtgjVLHZ3HvnOw0= MIME-Version: 1.0 In-Reply-To: <1507827914.16112.449.camel@linux.intel.com> References: <20170608134811.60786-1-andriy.shevchenko@linux.intel.com> <20170608134811.60786-25-andriy.shevchenko@linux.intel.com> <1507827914.16112.449.camel@linux.intel.com> From: Arnd Bergmann Date: Fri, 13 Oct 2017 09:42:46 +0200 X-Google-Sender-Auth: 5jBr5CwpSMHyA0cEidL7_jY-ud0 Message-ID: Subject: Re: [PATCH v1 24/25] kdb: Switch to use %pt To: Andy Shevchenko Cc: Rasmus Villemoes , Greg Kroah-Hartman , Andrew Morton , Linux Kernel Mailing List , Alessandro Zummo , Alexandre Belloni , linux-rtc@vger.kernel.org, Jason Wessel , Ingo Molnar Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 12, 2017 at 7:05 PM, Andy Shevchenko wrote: > On Thu, 2017-10-12 at 15:31 +0200, Arnd Bergmann wrote: >> On Thu, Jun 8, 2017 at 3:48 PM, Andy Shevchenko >> wrote: >> >> > 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); >> > - >> >> I just experimented with a similar change and noticed your version. >> >> You forgot to remove the kdb_gmtime() function that is now completely >> unneeded. My patch takes care of that now. > > So, are you going to substitute entire series by your variant? > > What did you choose to be format for the %p extension? My patch doesn't touch printf at all, instead it removes the __current_kernel_time() function, so it's unrelated but happens to change the same lines here. Since kdb_gmtime() doesn't work with 64-bit time_t, I replaced it using the generic time64_to_tm() helper and removed it here. Arnd