From: Andrew Deason Date: Fri, 23 Jun 2017 22:20:11 +0000 (-0500) Subject: afs: Improve "Corrupt directory" warning X-Git-Tag: upstream/1.8.0_pre2^3~35 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=0327ead297e3cf395cced1e6690b901e445f074c;p=packages%2Fo%2Fopenafs.git afs: Improve "Corrupt directory" warning This warning is a bit confusing to see, since it doesn't say anything about AFS (making it unclear where it's coming from), and it lacks a trailing newline (making it ugly). Fix both of these. Change-Id: I92a3d07fd193bf99b545aef9b21f52d23c356a2d Reviewed-on: https://gerrit.openafs.org/12641 Tested-by: BuildBot Reviewed-by: Benjamin Kaduk --- diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c index 8e9a2ef52..1e59e1153 100644 --- a/src/afs/LINUX/osi_vnodeops.c +++ b/src/afs/LINUX/osi_vnodeops.c @@ -393,7 +393,7 @@ afs_linux_readdir(struct file *fp, void *dirbuf, filldir_t filldir) if (code) { if (!(avc->f.states & CCorrupt)) { struct cell *tc = afs_GetCellStale(avc->f.fid.Cell, READ_LOCK); - afs_warn("Corrupt directory (%d.%d.%d.%d [%s] @%lx, pos %d)", + afs_warn("afs: Corrupt directory (%d.%d.%d.%d [%s] @%lx, pos %d)\n", avc->f.fid.Cell, avc->f.fid.Fid.Volume, avc->f.fid.Fid.Vnode, avc->f.fid.Fid.Unique, tc ? tc->cellName : "",