ソースを参照

type safeness printing.

(Logical change 1.98)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@361 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake 21 年 前
コミット
e2305e43aa
4 ファイル変更8 行追加8 行削除
  1. 2 2
      test/evtbench.c
  2. 2 2
      test/subscription.c
  3. 3 3
      test/testckpt.c
  4. 1 1
      test/testevt.c

+ 2 - 2
test/evtbench.c

@@ -288,8 +288,8 @@ event_callback( SaEvtSubscriptionIdT subscription_id,
 	int i;
 
 	printf("event_callback called\n");
-	printf("sub ID: %lx\n", subscription_id);
-	printf("event_handle %lx\n", event_handle);
+	printf("sub ID: %x\n", subscription_id);
+	printf("event_handle %x\n", event_handle);
 	printf("event data size %d\n", event_data_size);
 
 	evt_pat_get_array.patternsNumber = 4;

+ 2 - 2
test/subscription.c

@@ -223,9 +223,9 @@ event_callback( SaEvtSubscriptionIdT subscription_id,
 	if (!quiet)
 		printf("event_callback called\n");
 	if (!quiet)
-		printf("sub ID: %lx\n", subscription_id);
+		printf("sub ID: %x\n", subscription_id);
 	if (!quiet)
-		printf("event_handle %lx\n", event_handle);
+		printf("event_handle %x\n", event_handle);
 	if (!quiet)
 		printf("event data size %d\n", event_data_size);
 

+ 3 - 3
test/testckpt.c

@@ -65,7 +65,7 @@ SaNameT checkpointName = { 5, "abra\0" };
 SaCkptCheckpointCreationAttributesT checkpointCreationAttributes = {
 	SA_CKPT_WR_ALL_REPLICAS,
 	100000,
-	5000000000,
+	5000000000LL,
 	5,
 	20000,
 	10
@@ -185,7 +185,7 @@ printf ("Please wait, testing expiry of checkpoint sections.\n");
 	printf ("Elapsed Time to expiry is %ld.%ld (should be about %d seconds)\n", tv_elapsed.tv_sec, tv_elapsed.tv_usec, SECONDS_TO_EXPIRE);
 
 	error = saCkptCheckpointRetentionDurationSet (&checkpointHandle,
-		5000000000);
+						      5000000000LL);
 	printf ("RetentionDurationSet is %d\n", error);
 	exit (1);
 
@@ -241,7 +241,7 @@ exit (1);
 	printf ("open after unlink/close result %d (should be 1)\n", error);
 
 	error = saCkptCheckpointRetentionDurationSet (&checkpointHandle,
-		5000000000);
+						      5000000000LL);
 printf ("Retention duration set error is %d\n", error);
 	printf ("set checkpoint retention duration result %d (should be 1)\n", error);
 

+ 1 - 1
test/testevt.c

@@ -1082,7 +1082,7 @@ multi_test_callback1(SaEvtSubscriptionIdT my_subscription_id,
 	}
 
 	if (my_subscription_id != exp_sub_id) {
-		printf("ERROR: sub ID: e=%lx, a=%lx\n", 
+		printf("ERROR: sub ID: e=%x, a=%x\n", 
 				exp_sub_id, my_subscription_id);
 		goto evt_free;
 	}