Skip to contentSkip to conversation

quota: Add log level to printk

PATCH In review Anton Blanchard 3 participants 3 messages Nov 4, 2014 Diskquota

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 quota: Add log level to printk

---

fs/quota/dquot.c +1 -1
Index: b/fs/quota/dquot.c
===================================================================
@@ -2743,7 +2743,7 @@ static int __init dquot_init(void)
 	for (i = 0; i < nr_hash; i++)
 		INIT_HLIST_HEAD(dquot_hash + i);
 
-	printk("Dquot-cache hash table entries: %ld (order %ld, %ld bytes)\n",
+	pr_info("Dquot-cache hash table entries: %ld (order %ld, %ld bytes)\n",
 			nr_hash, order, (PAGE_SIZE << order));
 
 	register_shrinker(&dqcache_shrinker);
#1 lore raw
Quoted 8 lines · Anton Blanchard

---

Index: b/fs/quota/dquot.c
===================================================================

fs/quota/dquot.c static int __init dquot_init(void) · line 2747

Quoted 6 lines
fs/quota/dquot.c +1 -1
@@ -2743,7 +2743,7 @@ static int __init dquot_init(void)
 	for (i = 0; i < nr_hash; i++)
 		INIT_HLIST_HEAD(dquot_hash + i);
 
-	printk("Dquot-cache hash table entries: %ld (order %ld, %ld bytes)\n",
+	pr_info("Dquot-cache hash table entries: %ld (order %ld, %ld bytes)\n",
 			nr_hash, order, (PAGE_SIZE << order));

The other printks in the file have a "VFS: " prefix. Maybe this one too?

#2 lore raw
Quoted 12 lines · Joe Perches
Quoted 11 lines · Anton Blanchard

---

Index: b/fs/quota/dquot.c
===================================================================

fs/quota/dquot.c +0 -0
@@ -2743,7 +2743,7 @@ static int __init dquot_init(void)
 	for (i = 0; i < nr_hash; i++)
 		INIT_HLIST_HEAD(dquot_hash + i);
 
Quoted 6 lines

fs/quota/dquot.c static int __init dquot_init(void) · line 2747

Quoted 3 lines
fs/quota/dquot.c +1 -1
-	printk("Dquot-cache hash table entries: %ld (order %ld, %ld bytes)\n",
+	pr_info("Dquot-cache hash table entries: %ld (order %ld, %ld bytes)\n",
 			nr_hash, order, (PAGE_SIZE << order));

The other printks in the file have a "VFS: " prefix. Maybe this one too?

I'll merge Anton's patch and include additional VFS:.

Honza

Signature · 2 lines
Jan Kara <[email protected]>
SUSE Labs, CR