Changeset 077842c in mainline
- Timestamp:
- 2018-09-07T15:46:41Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e9d2905
- Parents:
- 78de83de
- Location:
- kernel
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/atomic.h
r78de83de r077842c 42 42 typedef size_t atomic_count_t; 43 43 typedef ssize_t atomic_signed_t; 44 45 #define PRIua "zu" /**< Format for atomic_count_t. */46 44 47 45 typedef struct { -
kernel/generic/src/proc/scheduler.c
r78de83de r077842c 530 530 log(LF_OTHER, LVL_DEBUG, 531 531 "cpu%u: tid %" PRIu64 " (priority=%d, ticks=%" PRIu64 532 ", nrdy=% " PRIua ")", CPU->id, THREAD->tid, THREAD->priority,532 ", nrdy=%zu)", CPU->id, THREAD->tid, THREAD->priority, 533 533 THREAD->ticks, atomic_get(&CPU->nrdy)); 534 534 #endif … … 739 739 irq_spinlock_lock(&cpus[cpu].lock, true); 740 740 741 printf("cpu%u: address=%p, nrdy=% " PRIua ", needs_relink=%zu\n",741 printf("cpu%u: address=%p, nrdy=%zu, needs_relink=%zu\n", 742 742 cpus[cpu].id, &cpus[cpu], atomic_get(&cpus[cpu].nrdy), 743 743 cpus[cpu].needs_relink); -
kernel/generic/src/proc/task.c
r78de83de r077842c 619 619 #ifdef __32_BITS__ 620 620 if (*additional) 621 printf("%-8" PRIu64 " %9 " PRIua, task->taskid,621 printf("%-8" PRIu64 " %9zu", task->taskid, 622 622 atomic_get(&task->refcount)); 623 623 else … … 631 631 if (*additional) 632 632 printf("%-8" PRIu64 " %9" PRIu64 "%c %9" PRIu64 "%c " 633 "%9 " PRIua "\n", task->taskid, ucycles, usuffix, kcycles,633 "%9zu\n", task->taskid, ucycles, usuffix, kcycles, 634 634 ksuffix, atomic_get(&task->refcount)); 635 635 else -
kernel/test/mm/falloc2.c
r78de83de r077842c 131 131 132 132 while (atomic_get(&thread_count) > 0) { 133 TPRINTF("Threads left: % " PRIua "\n",133 TPRINTF("Threads left: %zu\n", 134 134 atomic_get(&thread_count)); 135 135 thread_sleep(1); -
kernel/test/synch/semaphore1.c
r78de83de r077842c 88 88 producers = (4 - i) * PRODUCERS; 89 89 90 TPRINTF("Creating % " PRIua " consumers and %" PRIua "producers...",90 TPRINTF("Creating %zu consumers and %zu producers...", 91 91 consumers, producers); 92 92 … … 116 116 117 117 while ((items_consumed.count != consumers) || (items_produced.count != producers)) { 118 TPRINTF("% " PRIua " consumers remaining, %" PRIua "producers remaining\n",118 TPRINTF("%zu consumers remaining, %zu producers remaining\n", 119 119 consumers - items_consumed.count, producers - items_produced.count); 120 120 thread_sleep(1); -
kernel/test/synch/workq-test-core.h
r78de83de r077842c 191 191 for (int i = 0; i < WAVES; ++i) { 192 192 if (atomic_get(&call_cnt[i]) == exp_call_cnt) { 193 TPRINTF("Ok: % " PRIua "calls in wave %d, as expected.\n",193 TPRINTF("Ok: %zu calls in wave %d, as expected.\n", 194 194 atomic_get(&call_cnt[i]), i); 195 195 } else { 196 196 success = false; 197 TPRINTF("Error: % " PRIua "calls in wave %d, but %zu expected.\n",197 TPRINTF("Error: %zu calls in wave %d, but %zu expected.\n", 198 198 atomic_get(&call_cnt[i]), i, exp_call_cnt); 199 199 } -
kernel/test/thread/thread1.c
r78de83de r077842c 77 77 atomic_set(&finish, 0); 78 78 while (atomic_get(&threads_finished) < total) { 79 TPRINTF("Threads left: % " PRIua "\n", total - atomic_get(&threads_finished));79 TPRINTF("Threads left: %zu\n", total - atomic_get(&threads_finished)); 80 80 thread_sleep(1); 81 81 }
Note:
See TracChangeset
for help on using the changeset viewer.