mirror of
https://git.proxmox.com/git/mirror_corosync
synced 2025-08-02 21:28:46 +00:00
type safeness printing.
(Logical change 1.98) git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@361 fd59a12c-fef9-0310-b244-a6a79926bd2f
This commit is contained in:
parent
e90dd7e8a6
commit
e2305e43aa
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user