Skip to contentSkip to conversation

vfs: set proper level for printk in fs/super.c

PATCH 潘卫平(Peter Pan) 1 participant 1 message Mar 22, 2010 2 messages not in the archive

Subsystems (2)
lore
Share & tools
lore
#2 lore raw
In reply to a message not in the archive
Quoted 40 lines · Dan Carpenter
Quoted 10 lines · 潘卫平(Peter Pan)
---
  fs/super.c |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)
fs/super.c +0 -0
index f35ac60..60d720f 100644

fs/super.c void generic_shutdown_super(struct super_block *sb) · line 316

Quoted 6 lines
fs/super.c +1 -1
@@ -312,7 +312,7 @@ void generic_shutdown_super(struct super_block *sb)
 
  		/* Forget any remaining inodes */
  		if (invalidate_inodes(sb)) {
-			printk("VFS: Busy inodes after unmount of %s. "
+			printk(KERN_INFO "VFS: Busy inodes after unmount of %s. "
  			   "Self-destruct in 5 seconds.  Have a nice day...\n",

I'm pretty sure that both of these should be a higher priority than KERN_INFO.

regards,
dan carpenter

Quoted 16 lines
fs/super.c +1 -1
  			sb->s_id);
  		}
@@ -642,7 +642,7 @@ static void do_emergency_remount(struct work_struct
 *work)
  	}
  	spin_unlock(&sb_lock);
  	kfree(work);
-	printk("Emergency Remount complete\n");
+	printk(KERN_INFO "Emergency Remount complete\n");
  }
 

void emergency_remount(void)
--
1.6.6

Quoted 5 lines
Quoted 4 lines

--
To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

---
  fs/super.c |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)
fs/super.c +1 -1
index f35ac60..baffd23 100644
@@ -312,7 +312,7 @@ void generic_shutdown_super(struct super_block *sb)
 
  		/* Forget any remaining inodes */
  		if (invalidate_inodes(sb)) {
-			printk("VFS: Busy inodes after unmount of %s. "
+			printk(KERN_WARNING "VFS: Busy inodes after unmount of %s. "
  			   "Self-destruct in 5 seconds.  Have a nice day...\n",
  			   sb->s_id);
  		}
@@ -642,7 +642,7 @@ static void do_emergency_remount(struct work_struct 

*work)
}
spin_unlock(&sb_lock);
kfree(work);
- printk("Emergency Remount complete\n");
+ printk(KERN_NOTICE "Emergency Remount complete\n");
}

void emergency_remount(void)

Signature · 7 lines
1.6.6



-- 
Peter Pan(潘卫平)
Red Flag Software Co.,Ltd