File tree Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Expand file tree Collapse file tree 1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -2488,7 +2488,6 @@ static void kdb_sysinfo(struct sysinfo *val)
2488
2488
static int kdb_summary (int argc , const char * * argv )
2489
2489
{
2490
2490
time64_t now ;
2491
- struct tm tm ;
2492
2491
struct sysinfo val ;
2493
2492
2494
2493
if (argc )
@@ -2502,13 +2501,7 @@ static int kdb_summary(int argc, const char **argv)
2502
2501
kdb_printf ("domainname %s\n" , init_uts_ns .name .domainname );
2503
2502
2504
2503
now = __ktime_get_real_seconds ();
2505
- time64_to_tm (now , 0 , & tm );
2506
- kdb_printf ("date %04ld-%02d-%02d %02d:%02d:%02d "
2507
- "tz_minuteswest %d\n" ,
2508
- 1900 + tm .tm_year , tm .tm_mon + 1 , tm .tm_mday ,
2509
- tm .tm_hour , tm .tm_min , tm .tm_sec ,
2510
- sys_tz .tz_minuteswest );
2511
-
2504
+ kdb_printf ("date %ptTs tz_minuteswest %d\n" , & now , sys_tz .tz_minuteswest );
2512
2505
kdb_sysinfo (& val );
2513
2506
kdb_printf ("uptime " );
2514
2507
if (val .uptime > (24 * 60 * 60 )) {
You can’t perform that action at this time.
0 commit comments