All of lore.kernel.org
 help / color / mirror / Atom feed
* [Ocfs2-devel] [PATCH] ocfs2/cluster: Make o2net connect messages KERN_NOTICE
@ 2010-02-05 23:41 Sunil Mushran
  2010-02-05 23:41 ` [Ocfs2-devel] [PATCH] ocfs2/dlm: Fix printing of lockname Sunil Mushran
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Sunil Mushran @ 2010-02-05 23:41 UTC (permalink / raw)
  To: ocfs2-devel

Connect and disconnect messages are more than informational as they are required
during root cause analysis for failures. This patch changes them from KERN_INFO
to KERN_NOTICE.

Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
---
 fs/ocfs2/cluster/tcp.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/fs/ocfs2/cluster/tcp.c b/fs/ocfs2/cluster/tcp.c
index 4b8279e..b70be4c 100644
--- a/fs/ocfs2/cluster/tcp.c
+++ b/fs/ocfs2/cluster/tcp.c
@@ -486,7 +486,7 @@ static void o2net_set_nn_state(struct o2net_node *nn,
 	}
 
 	if (was_valid && !valid) {
-		printk(KERN_INFO "o2net: no longer connected to "
+		printk(KERN_NOTICE "o2net: no longer connected to "
 		       SC_NODEF_FMT "\n", SC_NODEF_ARGS(old_sc));
 		o2net_complete_nodes_nsw(nn);
 	}
@@ -494,7 +494,7 @@ static void o2net_set_nn_state(struct o2net_node *nn,
 	if (!was_valid && valid) {
 		o2quo_conn_up(o2net_num_from_nn(nn));
 		cancel_delayed_work(&nn->nn_connect_expired);
-		printk(KERN_INFO "o2net: %s " SC_NODEF_FMT "\n",
+		printk(KERN_NOTICE "o2net: %s " SC_NODEF_FMT "\n",
 		       o2nm_this_node() > sc->sc_node->nd_num ?
 		       		"connected to" : "accepted connection from",
 		       SC_NODEF_ARGS(sc));
@@ -1477,7 +1477,7 @@ static void o2net_idle_timer(unsigned long data)
 
 	do_gettimeofday(&now);
 
-	printk(KERN_INFO "o2net: connection to " SC_NODEF_FMT " has been idle for %u.%u "
+	printk(KERN_NOTICE "o2net: connection to " SC_NODEF_FMT " has been idle for %u.%u "
 	     "seconds, shutting it down.\n", SC_NODEF_ARGS(sc),
 		     o2net_idle_timeout() / 1000,
 		     o2net_idle_timeout() % 1000);
-- 
1.6.3.3

^ permalink raw reply related	[flat|nested] 9+ messages in thread
* [Ocfs2-devel] [PATCH] ocfs2/dlm: Fix printing of lockname
@ 2010-02-06  1:55 Sunil Mushran
  2010-02-07 23:13 ` Mark Fasheh
  2010-02-08 21:05 ` Joel Becker
  0 siblings, 2 replies; 9+ messages in thread
From: Sunil Mushran @ 2010-02-06  1:55 UTC (permalink / raw)
  To: ocfs2-devel

The debug call printing the name of the lock resource was chopping
off the last character. This patch fixes the problem.

Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
---
 fs/ocfs2/dlm/dlmdebug.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/fs/ocfs2/dlm/dlmdebug.c b/fs/ocfs2/dlm/dlmdebug.c
index f18afe9..75efd45 100644
--- a/fs/ocfs2/dlm/dlmdebug.c
+++ b/fs/ocfs2/dlm/dlmdebug.c
@@ -102,7 +102,7 @@ void __dlm_print_one_lock_resource(struct dlm_lock_resource *res)
 	assert_spin_locked(&res->spinlock);
 
 	stringify_lockname(res->lockname.name, res->lockname.len,
-			   buf, sizeof(buf) - 1);
+			   buf, sizeof(buf));
 	printk("lockres: %s, owner=%u, state=%u\n",
 	       buf, res->owner, res->state);
 	printk("  last used: %lu, refcnt: %u, on purge list: %s\n",
-- 
1.6.3.3

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-02-08 21:05 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-05 23:41 [Ocfs2-devel] [PATCH] ocfs2/cluster: Make o2net connect messages KERN_NOTICE Sunil Mushran
2010-02-05 23:41 ` [Ocfs2-devel] [PATCH] ocfs2/dlm: Fix printing of lockname Sunil Mushran
2010-02-05 23:57   ` Mark Fasheh
2010-02-06  1:14     ` Sunil Mushran
2010-02-05 23:52 ` [Ocfs2-devel] [PATCH] ocfs2/cluster: Make o2net connect messages KERN_NOTICE Mark Fasheh
2010-02-08 21:04 ` Joel Becker
  -- strict thread matches above, loose matches on Subject: below --
2010-02-06  1:55 [Ocfs2-devel] [PATCH] ocfs2/dlm: Fix printing of lockname Sunil Mushran
2010-02-07 23:13 ` Mark Fasheh
2010-02-08 21:05 ` Joel Becker

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.