Skip to contentSkip to conversation

fs: Use WARN(1,...)

PATCH New Xu Wang 1 participant 1 message Feb 26, 2021 VFS

lore
Share & tools
lore

Xu Wang

author
#0 lore raw

PATCH 1/1 fs: Use WARN(1,...)

Use WARN(1,...) rather than printk followed by WARN_ON(1).

---
 fs/dcache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/dcache.c +1 -1
index 2cdfdcd4276b..1dad7069dfe5 100644
@@ -1637,7 +1637,7 @@ static enum d_walk_ret umount_check(void *_data, struct dentry *dentry)
 	if (dentry == _data && dentry->d_lockref.count == 1)
 		return D_WALK_CONTINUE;
 
-	WARN(1, KERN_ERR "BUG: Dentry %p{i=%lx,n=%pd} "
+	WARN(1, "BUG: Dentry %p{i=%lx,n=%pd} "
 			" still in use (%d) [unmount of %s %s]\n",
 		       dentry,
 		       dentry->d_inode ?
Signature · 1 line
2.17.1