PXW(frsh_contract_get_min_expiration(&contract, &duration));
PXW(frsh_contract_negotiate(&contract, &vres));
- printf("Aqcpu vres negotiated, vres-ID: %d\n", (int) vres);
+ printf("Aqcpu vres negotiated, vres-ID: %p\n", vres);
while (1) {
duration_msec += duration_step;
ret = frsh_thread_get_vres_id(fosa_thread_self(), &vres_id);
if (ret) PERROR_AND_EXIT(ret, "frsh_get_vres_id");
- printf("\tvres retrieved from thread-ID: %d\n", (int) vres_id);
+ printf("\tvres retrieved from thread-ID: %p\n", vres_id);
ret = frsh_resource_get_vres_from_label("TEST_VRES",
FRSH_RT_PROCESSOR,
if (ret) PERROR_AND_EXIT(ret, "frsh_get_vres_from_label");
- printf("\ton retrived from label: %d\n", (int) vres_id);
+ printf("\ton retrived from label: %p\n", vres_id);
}
return EXIT_SUCCESS;
ret = frsh_contract_negotiate(&contract, &vres);
if (ret) PERROR_AND_EXIT(ret, "frsh_contract_negotiate");
- printf("Aqcpu vres negotiated, vres-ID: %d\n", (int) vres);
+ printf("Aqcpu vres negotiated, vres-ID: %p\n", vres);
pthread_attr_init(&attr);
ret = frsh_thread_create_and_bind(vres, &thread, &attr,
work_thread, (void*) NULL);