Skip to contentSkip to conversation

cluster/group/gfs_controld cpg.c group.c plock ...

Cluster-devel [email protected] 1 participant 1 message Jul 11, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: teigland at sourceware.org 2007-07-11 17:01:23

Modified files:
group/gfs_controld: cpg.c group.c plock.c recover.c

Log message:
add a bunch of casts to quiet warnings on x86-64 print a couple decimal places for times in the debug logging

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/gfs_controld/cpg.c.diff?cvsroot=cluster&r1=1.11&r2=1.12
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/gfs_controld/group.c.diff?cvsroot=cluster&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/gfs_controld/plock.c.diff?cvsroot=cluster&r1=1.31&r2=1.32
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/group/gfs_controld/recover.c.diff?cvsroot=cluster&r1=1.31&r2=1.32

group/gfs_controld/cpg.c +1 -1
@@ -222,7 +222,7 @@
 	}
 	if (error != CPG_OK) {
 		log_error("cpg_mcast_joined error %d handle %llx %s",
-			  error, h, msg_name(type));
+			  error, (long long)h, msg_name(type));
 		return -1;
 	}
 
group/gfs_controld/group.c +1 -1
@@ -170,7 +170,7 @@
 	gh = group_init(NULL, LOCK_DLM_GROUP_NAME, LOCK_DLM_GROUP_LEVEL,
 			&callbacks, 10);
 	if (!gh) {
-		log_error("group_init error %d %d", (int) gh, errno);
+		log_error("group_init error %p %d", gh, errno);
 		return -ENOTCONN;
 	}
 
group/gfs_controld/plock.c +59 -34

246 lines not on this page · raw message

group/gfs_controld/recover.c +1 -1
@@ -1667,7 +1667,7 @@
 
 	if (strlen(options) > MAX_OPTIONS_LEN-1) {
 		rv = -EMLINK;
-		log_error("mount: options too long %d", strlen(options));
+		log_error("mount: options too long %zu", strlen(options));
 		goto out;
 	}