Message ID | 582ae759a4fdfa31a64c35de489fa4efabac09d6.1558117389.git.jaharkes@cs.cmu.edu (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Coda updates | expand |
diff --git a/fs/coda/dir.c b/fs/coda/dir.c index 00876ddadb43..7e103eb8ffcd 100644 --- 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); }
Probably safer to just show the unexpected length and debug it from the userspace side. Signed-off-by: Jan Harkes <jaharkes@cs.cmu.edu> --- fs/coda/dir.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)