Changeset cd8ad52 in mainline for kernel/test/fpu/fpu1.c


Ignore:
Timestamp:
2008-06-03T14:58:05Z (17 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b63f8569
Parents:
7ac426e
Message:

proper printf formatting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/test/fpu/fpu1.c

    r7ac426e rcd8ad52  
    127127                if ((int) (100000000 * e) != E_10e8) {
    128128                        if (!sh_quiet)
    129                                 printf("tid%llu: e*10e8=%zd should be %zd\n", THREAD->tid, (unative_t) (100000000 * e), (unative_t) E_10e8);
     129                                printf("tid%" PRIu64 ": e*10e8=%zd should be %" PRIun "\n", THREAD->tid, (unative_t) (100000000 * e), (unative_t) E_10e8);
    130130                        atomic_inc(&threads_fault);
    131131                        break;
     
    162162                if ((int) (1000000 * pi) != PI_10e8) {
    163163                        if (!sh_quiet)
    164                                 printf("tid%llu: pi*10e8=%zd should be %zd\n", THREAD->tid, (unative_t) (1000000 * pi), (unative_t) (PI_10e8 / 100));
     164                                printf("tid%" PRIu64 ": pi*10e8=%zd should be %" PRIun "\n", THREAD->tid, (unative_t) (1000000 * pi), (unative_t) (PI_10e8 / 100));
    165165                        atomic_inc(&threads_fault);
    166166                        break;
     
    169169                if ((int) (100000000 * pi) != PI_10e8) {
    170170                        if (!sh_quiet)
    171                                 printf("tid%llu: pi*10e8=%zd should be %zd\n", THREAD->tid, (unative_t) (100000000 * pi), (unative_t) PI_10e8);
     171                                printf("tid%" PRIu64 ": pi*10e8=%zd should be %" PRIun "\n", THREAD->tid, (unative_t) (100000000 * pi), (unative_t) PI_10e8);
    172172                        atomic_inc(&threads_fault);
    173173                        break;
     
    188188       
    189189        if (!quiet)
    190                 printf("Creating %d threads... ", 2 * THREADS);
     190                printf("Creating %u threads... ", 2 * THREADS);
    191191
    192192        for (i = 0; i < THREADS; i++) { 
     
    195195                if (!(t = thread_create(e, NULL, TASK, 0, "e", false))) {
    196196                        if (!quiet)
    197                                 printf("could not create thread %d\n", 2 * i);
     197                                printf("could not create thread %u\n", 2 * i);
    198198                        break;
    199199                }
     
    203203                if (!(t = thread_create(pi, NULL, TASK, 0, "pi", false))) {
    204204                        if (!quiet)
    205                                 printf("could not create thread %d\n", 2 * i + 1);
     205                                printf("could not create thread %u\n", 2 * i + 1);
    206206                        break;
    207207                }
Note: See TracChangeset for help on using the changeset viewer.