Skip to content

Commit 2f9e0f8

Browse files
andy-shevpmladek
authored andcommitted
usb: host: xhci-tegra: Switch to use %ptTs
Use %ptTs instead of open coded variant to print contents of time64_t type in human readable form. Cc: Thierry Reding <[email protected]> Cc: Jonathan Hunter <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]> Reviewed-by: Petr Mladek <[email protected]> Acked-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Petr Mladek <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 776797f commit 2f9e0f8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

drivers/usb/host/xhci-tegra.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -917,7 +917,6 @@ static int tegra_xusb_load_firmware(struct tegra_xusb *tegra)
917917
struct xhci_op_regs __iomem *op;
918918
unsigned long timeout;
919919
time64_t timestamp;
920-
struct tm time;
921920
u64 address;
922921
u32 value;
923922
int err;
@@ -1014,11 +1013,8 @@ static int tegra_xusb_load_firmware(struct tegra_xusb *tegra)
10141013
}
10151014

10161015
timestamp = le32_to_cpu(header->fwimg_created_time);
1017-
time64_to_tm(timestamp, 0, &time);
10181016

1019-
dev_info(dev, "Firmware timestamp: %ld-%02d-%02d %02d:%02d:%02d UTC\n",
1020-
time.tm_year + 1900, time.tm_mon + 1, time.tm_mday,
1021-
time.tm_hour, time.tm_min, time.tm_sec);
1017+
dev_info(dev, "Firmware timestamp: %ptTs UTC\n", &timestamp);
10221018

10231019
return 0;
10241020
}

0 commit comments

Comments
 (0)