[Ocfs2-commits] mfasheh commits r2004 - branches/usysfsify/fs/ocfs2/cluster

svn-commits at oss.oracle.com svn-commits at oss.oracle.com
Thu Mar 17 20:27:54 CST 2005


Author: mfasheh
Date: 2005-03-17 20:27:52 -0600 (Thu, 17 Mar 2005)
New Revision: 2004

Modified:
   branches/usysfsify/fs/ocfs2/cluster/heartbeat.c
Log:
* we were forgetting to put a newline at the end of the 'dev' string



Modified: branches/usysfsify/fs/ocfs2/cluster/heartbeat.c
===================================================================
--- branches/usysfsify/fs/ocfs2/cluster/heartbeat.c	2005-03-18 02:12:05 UTC (rev 2003)
+++ branches/usysfsify/fs/ocfs2/cluster/heartbeat.c	2005-03-18 02:27:52 UTC (rev 2004)
@@ -528,7 +528,7 @@
 static ssize_t hb_region_dev_read(struct hb_region *reg, char *page)
 {
 	const char *str = bdevname(reg->hr_bdev, page);
-	return strlen(str);
+	return sprintf(page, "%s\n", str);
 }
 
 /* this is acting as commit; we set up all of hr_bdev and hr_task or nothing */



More information about the Ocfs2-commits mailing list