diff --git a/test/evtbench.c b/test/evtbench.c index 73990423..81e5aba1 100644 --- a/test/evtbench.c +++ b/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; diff --git a/test/subscription.c b/test/subscription.c index 4e13822d..654fc630 100644 --- a/test/subscription.c +++ b/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); diff --git a/test/testckpt.c b/test/testckpt.c index e1f1c32f..4a56e32a 100644 --- a/test/testckpt.c +++ b/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); diff --git a/test/testevt.c b/test/testevt.c index 318ce793..d2adc6ce 100644 --- a/test/testevt.c +++ b/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; }