zdb: standardise on ctime()

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #13284
This commit is contained in:
наб 2022-04-04 13:55:49 +02:00 committed by Brian Behlendorf
parent 95babbe573
commit d5036491e6
1 changed files with 1 additions and 1 deletions

View File

@ -3926,7 +3926,7 @@ dump_uberblock(uberblock_t *ub, const char *header, const char *footer)
(void) printf("\ttxg = %llu\n", (u_longlong_t)ub->ub_txg); (void) printf("\ttxg = %llu\n", (u_longlong_t)ub->ub_txg);
(void) printf("\tguid_sum = %llu\n", (u_longlong_t)ub->ub_guid_sum); (void) printf("\tguid_sum = %llu\n", (u_longlong_t)ub->ub_guid_sum);
(void) printf("\ttimestamp = %llu UTC = %s", (void) printf("\ttimestamp = %llu UTC = %s",
(u_longlong_t)ub->ub_timestamp, asctime(localtime(&timestamp))); (u_longlong_t)ub->ub_timestamp, ctime(&timestamp));
(void) printf("\tmmp_magic = %016llx\n", (void) printf("\tmmp_magic = %016llx\n",
(u_longlong_t)ub->ub_mmp_magic); (u_longlong_t)ub->ub_mmp_magic);