mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-09 02:51:11 +01:00
ARM: bcm2835: Switch to use %ptT
Use %ptT instead of open coded variant to print content of time64_t type in human readable format. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Andy Shevchenko <[email protected]> Acked-by: Sergey Senozhatsky <[email protected]> Rewieved-by: Petr Mladek <[email protected]> Signed-off-by: Petr Mladek <[email protected]>
This commit is contained in:
1 parent
7daac5b2fd
commit
4a60f58ee0
1 file changed
+3
-9
@@ -182,16 +182,10 @@ rpi_firmware_print_firmware_revision(struct rpi_firmware *fw)
|
||||
RPI_FIRMWARE_GET_FIRMWARE_REVISION,
|
||||
&packet, sizeof(packet));
|
||||
|
||||
if (ret == 0) {
|
||||
struct tm tm;
|
||||
if (ret)
|
||||
return;
|
||||
|
||||
time64_to_tm(packet, 0, &tm);
|
||||
|
||||
dev_info(fw->cl.dev,
|
||||
"Attached to firmware from %04ld-%02d-%02d %02d:%02d\n",
|
||||
tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday,
|
||||
tm.tm_hour, tm.tm_min);
|
||||
}
|
||||
dev_info(fw->cl.dev, "Attached to firmware from %ptT\n", &packet);
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in new issue
Block a user