]> rtime.felk.cvut.cz Git - frescor/frsh.git/commitdiff
Fixed printf warnings on 64-bit arch
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 27 Oct 2009 09:08:09 +0000 (10:08 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 27 Oct 2009 09:08:09 +0000 (10:08 +0100)
frsh_api/tests/cpu_renegotiation.c
frsh_api/tests/cpu_spare_capacity.c

index 5e7d11fd84bed9885d25a3085b5749081c7ff51b..9fcfaf3ad9fa85f58c9568a2565b778e6506002a 100644 (file)
@@ -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);
index a872fc69a0e496fe54323541374d79a6b6eb28ac..630d3eeffef6751090c153579d1e11eddb9bb3b7 100644 (file)
@@ -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);