From 9ba56941a674cd10bd38b623fcca577558301c19 Mon Sep 17 00:00:00 2001 From: Ksawlii Date: Sun, 24 Nov 2024 00:23:31 +0100 Subject: [PATCH] Revert "fs/namespace: fnic: Switch to use %ptTd" This reverts commit 7c72670e6afcd26b1523e67cf2dab340cadfa0f0. --- fs/namespace.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/fs/namespace.c b/fs/namespace.c index 369ea869c..709026bcf 100755 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -2894,12 +2894,15 @@ static void mnt_warn_timestamp_expiry(struct path *mountpoint, struct vfsmount * (ktime_get_real_seconds() + TIME_UPTIME_SEC_MAX > sb->s_time_max)) { char *buf = (char *)__get_free_page(GFP_KERNEL); char *mntpath = buf ? d_path(mountpoint, buf, PAGE_SIZE) : ERR_PTR(-ENOMEM); + struct tm tm; - pr_warn("%s filesystem being %s at %s supports timestamps until %ptTd (0x%llx)\n", + time64_to_tm(sb->s_time_max, 0, &tm); + + pr_warn("%s filesystem being %s at %s supports timestamps until %04ld (0x%llx)\n", sb->s_type->name, is_mounted(mnt) ? "remounted" : "mounted", - mntpath, &sb->s_time_max, - (unsigned long long)sb->s_time_max); + mntpath, + tm.tm_year+1900, (unsigned long long)sb->s_time_max); free_page((unsigned long)buf); sb->s_iflags |= SB_I_TS_EXPIRY_WARNED;