diff options
author | Sunil Mushran <sunil.mushran@oracle.com> | 2006-04-27 19:41:31 -0400 |
---|---|---|
committer | Mark Fasheh <mark.fasheh@oracle.com> | 2006-06-29 18:56:26 -0400 |
commit | 781ee3e2b1ea41d56ed86ae1c85fc40b7f330205 (patch) | |
tree | 00e605613fbf589ec50399873eae1a4eed536635 /fs/ocfs2/dlm | |
parent | a43db30c7c614c08851a97476aeb317ca2e14475 (diff) |
ocfs2: Cleanup message prints
Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2/dlm')
-rw-r--r-- | fs/ocfs2/dlm/dlmdomain.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/fs/ocfs2/dlm/dlmdomain.c b/fs/ocfs2/dlm/dlmdomain.c index b8c23f7ba67e..8d1065f8b3bd 100644 --- a/fs/ocfs2/dlm/dlmdomain.c +++ b/fs/ocfs2/dlm/dlmdomain.c | |||
@@ -408,12 +408,13 @@ static void __dlm_print_nodes(struct dlm_ctxt *dlm) | |||
408 | 408 | ||
409 | assert_spin_locked(&dlm->spinlock); | 409 | assert_spin_locked(&dlm->spinlock); |
410 | 410 | ||
411 | mlog(ML_NOTICE, "Nodes in my domain (\"%s\"):\n", dlm->name); | 411 | printk(KERN_INFO "ocfs2_dlm: Nodes in domain (\"%s\"): ", dlm->name); |
412 | 412 | ||
413 | while ((node = find_next_bit(dlm->domain_map, O2NM_MAX_NODES, | 413 | while ((node = find_next_bit(dlm->domain_map, O2NM_MAX_NODES, |
414 | node + 1)) < O2NM_MAX_NODES) { | 414 | node + 1)) < O2NM_MAX_NODES) { |
415 | mlog(ML_NOTICE, " node %d\n", node); | 415 | printk("%d ", node); |
416 | } | 416 | } |
417 | printk("\n"); | ||
417 | } | 418 | } |
418 | 419 | ||
419 | static int dlm_exit_domain_handler(struct o2net_msg *msg, u32 len, void *data) | 420 | static int dlm_exit_domain_handler(struct o2net_msg *msg, u32 len, void *data) |
@@ -429,7 +430,7 @@ static int dlm_exit_domain_handler(struct o2net_msg *msg, u32 len, void *data) | |||
429 | 430 | ||
430 | node = exit_msg->node_idx; | 431 | node = exit_msg->node_idx; |
431 | 432 | ||
432 | mlog(0, "Node %u leaves domain %s\n", node, dlm->name); | 433 | printk(KERN_INFO "ocfs2_dlm: Node %u leaves domain %s\n", node, dlm->name); |
433 | 434 | ||
434 | spin_lock(&dlm->spinlock); | 435 | spin_lock(&dlm->spinlock); |
435 | clear_bit(node, dlm->domain_map); | 436 | clear_bit(node, dlm->domain_map); |
@@ -678,6 +679,8 @@ static int dlm_assert_joined_handler(struct o2net_msg *msg, u32 len, void *data) | |||
678 | set_bit(assert->node_idx, dlm->domain_map); | 679 | set_bit(assert->node_idx, dlm->domain_map); |
679 | __dlm_set_joining_node(dlm, DLM_LOCK_RES_OWNER_UNKNOWN); | 680 | __dlm_set_joining_node(dlm, DLM_LOCK_RES_OWNER_UNKNOWN); |
680 | 681 | ||
682 | printk(KERN_INFO "ocfs2_dlm: Node %u joins domain %s\n", | ||
683 | assert->node_idx, dlm->name); | ||
681 | __dlm_print_nodes(dlm); | 684 | __dlm_print_nodes(dlm); |
682 | 685 | ||
683 | /* notify anything attached to the heartbeat events */ | 686 | /* notify anything attached to the heartbeat events */ |