[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] cluster/dlm/tool main.c



CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	RHEL4
Changes by:	teigland sourceware org	2007-07-03 15:59:28

Modified files:
	dlm/tool       : main.c 

Log message:
	quote the resource name when printing

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/dlm/tool/main.c.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.3.2.2&r2=1.3.2.3

--- cluster/dlm/tool/main.c	2007/07/02 20:07:17	1.3.2.2
+++ cluster/dlm/tool/main.c	2007/07/03 15:59:27	1.3.2.3
@@ -250,16 +250,16 @@
 		sscanf(line, "%s %s %u Remote: %d %s\n", &lkid, &grmode,
 		       &pid, &remote_nodeid, remote_lkid);
 
-		printf("id %s gr %s rq %s pid %u MSTCPY %d %s\n", lkid, grmode, "IV",
-	       	       pid, remote_nodeid, name);
+		printf("id %s gr %s rq %s pid %u MSTCPY %d \"%s\"\n",
+			lkid, grmode, "IV", pid, remote_nodeid, name);
 
 		return;
 	}
 
 	sscanf(line, "%s %s %u\n", &lkid, &grmode, &pid);
 
-	printf("id %s gr %s rq %s pid %u master %d %s\n", lkid, grmode, "IV",
-	       pid, master, name);
+	printf("id %s gr %s rq %s pid %u master %d \"%s\"\n",
+		lkid, grmode, "IV", pid, master, name);
 }
 
 void print_convert(char *line, char *name, int master)
@@ -278,16 +278,16 @@
 		sscanf(line, "%s %s (%s) %u Remote: %d %s\n", &lkid, &grmode,
 		       &rqmode, &pid, &remote_nodeid, remote_lkid);
 
-		printf("id %s gr %s rq %s pid %u MSTCPY %d %s\n", lkid, grmode,
-	       		rqmode, pid, remote_nodeid, name);
+		printf("id %s gr %s rq %s pid %u MSTCPY %d \"%s\"\n",
+			lkid, grmode, rqmode, pid, remote_nodeid, name);
 
 		return;
 	}
 
 	sscanf(line, "%s %s (%s) %u\n", &lkid, &grmode, &rqmode, &pid);
 
-	printf("id %s gr %s rq %s pid %u master %d %s\n", lkid, grmode, rqmode,
-	       pid, master, name);
+	printf("id %s gr %s rq %s pid %u master %d \"%s\"\n",
+		lkid, grmode, rqmode, pid, master, name);
 }
 
 void print_waiting(char *line, char *name, int master)
@@ -306,16 +306,16 @@
 		sscanf(line, "%s %s (%s) %u Remote: %d %s\n", &lkid, &grmode,
 		       &rqmode, &pid, &remote_nodeid, remote_lkid);
 
-		printf("id %s gr %s rq %s pid %u MSTCPY %d %s\n", lkid, "IV",
-	       		rqmode, pid, remote_nodeid, name);
+		printf("id %s gr %s rq %s pid %u MSTCPY %d \"%s\"\n",
+			lkid, "IV", rqmode, pid, remote_nodeid, name);
 
 		return;
 	}
 
 	sscanf(line, "%s %s (%s) %u\n", &lkid, &grmode, &rqmode, &pid);
 
-	printf("id %s gr %s rq %s pid %u master %d %s\n", lkid, "IV", rqmode,
-	       pid, master, name);
+	printf("id %s gr %s rq %s pid %u master %d \"%s\"\n",
+		lkid, "IV", rqmode, pid, master, name);
 }
 
 int parse_master_nodeid(char *line)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]