Skip to contentSkip to conversation

ocfs2/trivial: Use proper mask for 2 places in hearbeat.c

PATCH New Tao Ma 2 participants 2 messages Dec 22, 2009 OCFS2

lore
Share & tools
lore

Tao Ma

author
#0 lore raw

PATCH 1/1 ocfs2/trivial: Use proper mask for 2 places in hearbeat.c

I just noticed today that there are 2 places of "mlog(0,...)" in fs/ocfs2/cluster/heartbeat.c, but actually have no default mask prefix in that file.
So change them to mlog(ML_HEARTBEAT,...).

---
 fs/ocfs2/cluster/heartbeat.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
fs/ocfs2/cluster/heartbeat.c +4 -2
index c452d11..eda5b8b 100644
@@ -176,7 +176,8 @@ static void o2hb_write_timeout(struct work_struct *work)
 
 static void o2hb_arm_write_timeout(struct o2hb_region *reg)
 {
-	mlog(0, "Queue write timeout for %u ms\n", O2HB_MAX_WRITE_TIMEOUT_MS);
+	mlog(ML_HEARTBEAT, "Queue write timeout for %u ms\n",
+	     O2HB_MAX_WRITE_TIMEOUT_MS);
 
 	cancel_delayed_work(&reg->hr_write_timeout_work);
 	reg->hr_last_timeout_start = jiffies;
@@ -874,7 +875,8 @@ static int o2hb_thread(void *data)
 		do_gettimeofday(&after_hb);
 		elapsed_msec = o2hb_elapsed_msecs(&before_hb, &after_hb);
 
-		mlog(0, "start = %lu.%lu, end = %lu.%lu, msec = %u\n",
+		mlog(ML_HEARTBEAT,
+		     "start = %lu.%lu, end = %lu.%lu, msec = %u\n",
 		     before_hb.tv_sec, (unsigned long) before_hb.tv_usec,
 		     after_hb.tv_sec, (unsigned long) after_hb.tv_usec,
 		     elapsed_msec);
Signature · 1 line
1.5.5
#1 lore raw

PATCH 1/1 ocfs2/trivial: Use proper mask for 2 places in hearbeat.c

Ack

Quoted 45 lines · Tao Ma

I just noticed today that there are 2 places of "mlog(0,...)" in fs/ocfs2/cluster/heartbeat.c, but actually have no default mask prefix in that file.
So change them to mlog(ML_HEARTBEAT,...).

---
fs/ocfs2/cluster/heartbeat.c | 6 ++++--

1 files changed, 4 insertions(+), 2 deletions(-)
fs/ocfs2/cluster/ renamed from fs/ocfs2/cluster/heartbeat.c +0 -0

heartbeat.c
index c452d11..eda5b8b 100644

fs/ocfs2/cluster/heartbeat.c +2 -1
@@ -176,7 +176,8 @@ static void o2hb_write_timeout(struct  
 work_struct *work)
 
 static void o2hb_arm_write_timeout(struct o2hb_region *reg)
 {
-    mlog(0, "Queue write timeout for %u ms\n",  
 O2HB_MAX_WRITE_TIMEOUT_MS);
+    mlog(ML_HEARTBEAT, "Queue write timeout for %u ms\n",
+         O2HB_MAX_WRITE_TIMEOUT_MS);
 
   cancel_delayed_work(&reg->hr_write_timeout_work);
   reg->hr_last_timeout_start = jiffies;
fs/ocfs2/cluster/heartbeat.c +2 -1
@@ -874,7 +875,8 @@ static int o2hb_thread(void *data)
       do_gettimeofday(&after_hb);
       elapsed_msec = o2hb_elapsed_msecs(&before_hb, &after_hb);
 
-        mlog(0, "start = %lu.%lu, end = %lu.%lu, msec = %u\n",
+        mlog(ML_HEARTBEAT,
+             "start = %lu.%lu, end = %lu.%lu, msec = %u\n",
            before_hb.tv_sec, (unsigned long) before_hb.tv_usec,
            after_hb.tv_sec, (unsigned long) after_hb.tv_usec,
            elapsed_msec);
Signature · 7 lines
1.5.5


_______________________________________________
Ocfs2-devel mailing list
Ocfs2-devel at oss.oracle.com
http://oss.oracle.com/mailman/listinfo/ocfs2-devel