projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2a57e3
)
coda: don't try to print names that were considered too long
author
Jan Harkes
<
[email protected]
>
Tue, 16 Jul 2019 23:28:23 +0000
(16:28 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 17 Jul 2019 02:23:23 +0000
(19:23 -0700)
Probably safer to just show the unexpected length and debug it from the
userspace side.
Link:
http://lkml.kernel.org/r/582ae759a4fdfa31a64c35de489fa4efabac09d6.1558117389.git.jaharkes@cs.cmu.edu
Signed-off-by: Jan Harkes <
[email protected]
>
Cc: Arnd Bergmann <
[email protected]
>
Cc: Colin Ian King <
[email protected]
>
Cc: Dan Carpenter <
[email protected]
>
Cc: David Howells <
[email protected]
>
Cc: Fabian Frederick <
[email protected]
>
Cc: Mikko Rapeli <
[email protected]
>
Cc: Sam Protsenko <
[email protected]
>
Cc: Yann Droneaud <
[email protected]
>
Cc: Zhouyang Jia <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/coda/dir.c
patch
|
blob
|
history
diff --git
a/fs/coda/dir.c
b/fs/coda/dir.c
index 00876ddadb43021396c9c2f010fa2c4fa2e90cd1..7e103eb8ffcd637490d32ce50919f1c3325eb7cb 100644
(file)
--- a/
fs/coda/dir.c
+++ b/
fs/coda/dir.c
@@
-47,8
+47,8
@@
static struct dentry *coda_lookup(struct inode *dir, struct dentry *entry, unsig
int type = 0;
if (length > CODA_MAXNAMLEN) {
- pr_err("name too long: lookup, %s
(%*s)
\n",
- coda_i2s(dir),
(int)length, name
);
+ pr_err("name too long: lookup, %s
%zu
\n",
+ coda_i2s(dir),
length
);
return ERR_PTR(-ENAMETOOLONG);
}