Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752093AbdFHNsx (ORCPT ); Thu, 8 Jun 2017 09:48:53 -0400 Received: from mga14.intel.com ([192.55.52.115]:50385 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751448AbdFHNsv (ORCPT ); Thu, 8 Jun 2017 09:48:51 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.39,315,1493708400"; d="scan'208";a="271792569" From: Andy Shevchenko To: Rasmus Villemoes , Greg Kroah-Hartman , Andrew Morton , linux-kernel@vger.kernel.org, Alessandro Zummo , Alexandre Belloni , linux-rtc@vger.kernel.org Cc: Andy Shevchenko , Jason Wessel , Ingo Molnar Subject: [PATCH v1 24/25] kdb: Switch to use %pt Date: Thu, 8 Jun 2017 16:48:10 +0300 Message-Id: <20170608134811.60786-25-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170608134811.60786-1-andriy.shevchenko@linux.intel.com> References: <20170608134811.60786-1-andriy.shevchenko@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1028 Lines: 30 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 --- 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)) { -- 2.11.0