From 115e06d6138b0e292bd992047c4439a42e32005e Mon Sep 17 00:00:00 2001 From: Michal Sojka Date: Tue, 27 Oct 2009 10:08:09 +0100 Subject: [PATCH] Fixed printf warnings on 64-bit arch --- frsh_api/tests/cpu_renegotiation.c | 2 +- frsh_api/tests/cpu_spare_capacity.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frsh_api/tests/cpu_renegotiation.c b/frsh_api/tests/cpu_renegotiation.c index 5e7d11f..9fcfaf3 100644 --- a/frsh_api/tests/cpu_renegotiation.c +++ b/frsh_api/tests/cpu_renegotiation.c @@ -112,7 +112,7 @@ int main(int argc, char *argv[]) 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); diff --git a/frsh_api/tests/cpu_spare_capacity.c b/frsh_api/tests/cpu_spare_capacity.c index a872fc6..630d3ee 100644 --- a/frsh_api/tests/cpu_spare_capacity.c +++ b/frsh_api/tests/cpu_spare_capacity.c @@ -117,7 +117,7 @@ int main(int argc, char *argv[]) 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); -- 2.39.2