aboutsummaryrefslogtreecommitdiff
path: root/fs/exfat
diff options
context:
space:
mode:
authorGravatar Takashi Iwai <tiwai@suse.de> 2022-07-26 10:39:28 +0200
committerGravatar Namjae Jeon <linkinjeon@kernel.org> 2022-08-01 10:14:07 +0900
commit64fca6e621715fde548ad1a96ac5e6a2f586763a (patch)
tree0a64f1f47c15abd5f0e16739eef9d85c4a012b63 /fs/exfat
parentexfat: Expand exfat_err() and co directly to pr_*() macro (diff)
downloadlinux-64fca6e621715fde548ad1a96ac5e6a2f586763a.tar.gz
linux-64fca6e621715fde548ad1a96ac5e6a2f586763a.tar.bz2
linux-64fca6e621715fde548ad1a96ac5e6a2f586763a.zip
exfat: Downgrade ENAMETOOLONG error message to debug messages
The ENAMETOOLONG error message is printed at each time when user tries to operate with a too long name, and this can flood the kernel logs easily, as every user can trigger this. Let's downgrade this error message level to a debug message for suppressing the superfluous logs. BugLink: https://bugzilla.suse.com/show_bug.cgi?id=1201725 Reviewed-by: Petr Vorel <pvorel@suse.cz> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Diffstat (limited to 'fs/exfat')
-rw-r--r--fs/exfat/nls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/exfat/nls.c b/fs/exfat/nls.c
index ef115e673406..617aa1272265 100644
--- a/fs/exfat/nls.c
+++ b/fs/exfat/nls.c
@@ -509,7 +509,7 @@ static int exfat_utf8_to_utf16(struct super_block *sb,
}
if (unilen > MAX_NAME_LENGTH) {
- exfat_err(sb, "failed to %s (estr:ENAMETOOLONG) nls len : %d, unilen : %d > %d",
+ exfat_debug(sb, "failed to %s (estr:ENAMETOOLONG) nls len : %d, unilen : %d > %d",
__func__, len, unilen, MAX_NAME_LENGTH);
return -ENAMETOOLONG;
}