Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1661224
| From | Andy Shevchenko <andriy.shevchenko@linux.intel.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v1 24/25] kdb: Switch to use %pt |
| Date | 2017-06-08 15:50 +0200 |
| Message-ID | <tQ5Z1-4WL-33@gated-at.bofh.it> (permalink) |
| References | <tQ5Z1-4WL-35@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Use %pt instead of open coded variant to print content of
struct rtc_time in human readable format.
Cc: Jason Wessel <jason.wessel@windriver.com>
Cc: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
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
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH v1 24/25] kdb: Switch to use %pt Andy Shevchenko <andriy.shevchenko@linux.intel.com> - 2017-06-08 15:50 +0200 Re: [PATCH v1 24/25] kdb: Switch to use %pt Daniel Thompson <daniel.thompson@linaro.org> - 2017-06-09 15:50 +0200
csiph-web