]> rtime.felk.cvut.cz Git - frescor/frsh.git/commitdiff
Suppress several warnings
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 8 Dec 2009 15:59:43 +0000 (16:59 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 8 Dec 2009 15:59:43 +0000 (16:59 +0100)
resources/acpi_battery/tests/acpi_battery_test.c
resources/cpu_aquosa/tests/aqcputest.c

index fe18b6df1b2c7689ad17fdf2945d1626e56b11aa..0f523a1b033ff375ae3eec457e2d336b95447867 100644 (file)
@@ -52,7 +52,7 @@ int main()
        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;
index 00a82016787d12a76c4f6dc0f3534f945da2c43b..837279cc3f6a5e269fdddcef90e3376f9ed04cc1 100644 (file)
@@ -17,7 +17,7 @@ void* work_thread()
                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,
@@ -26,7 +26,7 @@ void* work_thread()
                
                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;
@@ -75,7 +75,7 @@ int main()
        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);