[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <bcf85452f45f2c990dd16dac485ab9adf3edcea9.1322609672.git.joe@perches.com>
Date: Tue, 29 Nov 2011 18:14:05 -0800
From: Joe Perches <joe@...ches.com>
To: Alexander Viro <viro@...iv.linux.org.uk>
Cc: linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH 07/28] namespace: Use current logging styles
Add and use pr_fmt and pr_<level>.
This adds a "namespace: " prefix to logging output.
Signed-off-by: Joe Perches <joe@...ches.com>
---
fs/namespace.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/fs/namespace.c b/fs/namespace.c
index 874dc5c..f9a164d 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -8,6 +8,8 @@
* Heavily rewritten.
*/
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
#include <linux/syscalls.h>
#include <linux/slab.h>
#include <linux/sched.h>
@@ -2716,7 +2718,7 @@ void __init mnt_init(void)
if (!mount_hashtable)
panic("Failed to allocate mount hash table\n");
- printk(KERN_INFO "Mount-cache hash table entries: %lu\n", HASH_SIZE);
+ pr_info("Mount-cache hash table entries: %lu\n", HASH_SIZE);
for (u = 0; u < HASH_SIZE; u++)
INIT_LIST_HEAD(&mount_hashtable[u]);
@@ -2725,11 +2727,10 @@ void __init mnt_init(void)
err = sysfs_init();
if (err)
- printk(KERN_WARNING "%s: sysfs_init error: %d\n",
- __func__, err);
+ pr_warn("%s: sysfs_init error: %d\n", __func__, err);
fs_kobj = kobject_create_and_add("fs", NULL);
if (!fs_kobj)
- printk(KERN_WARNING "%s: kobj create error\n", __func__);
+ pr_warn("%s: kobj create error\n", __func__);
init_rootfs();
init_mount_tree();
}
--
1.7.6.405.gc1be0
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists