Changeset 35ebd42 in mainline


Ignore:
Timestamp:
2017-10-24T04:55:29Z (7 years ago)
Author:
jzr <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8ddaaac
Parents:
b639d56
Message:

Fix up some type casts and format strings.

Location:
kernel
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/src/interrupt.c

    rb639d56 r35ebd42  
    8888            istate->esi, istate->edi, istate->ebp,
    8989            istate_from_uspace(istate) ? istate->esp :
    90             (uintptr_t) &istate->esp);
     90            (uint32_t) &istate->esp);
    9191}
    9292
  • kernel/generic/src/debug/panic.c

    rb639d56 r35ebd42  
    6262                printf("\n");
    6363        } else if (cat == PANIC_BADTRAP) {
    64                 printf("bad trap %" PRIun ". %s\n", address,
     64                printf("bad trap %" PRIuPTR ". %s\n", address,
    6565                    BANNER_RIGHT);
    6666                if (fmt) {
     
    9696        printf("THE=%p: ", THE);
    9797        if (THE != NULL) {
    98                 printf("pe=%" PRIun " thread=%p task=%p cpu=%p as=%p"
     98                printf("pe=%" PRIuPTR " thread=%p task=%p cpu=%p as=%p"
    9999                    " magic=%#" PRIx32 "\n", THE->preemption,
    100100                    THE->thread, THE->task, THE->cpu, THE->as, THE->magic);
  • kernel/generic/src/lib/ra.c

    rb639d56 r35ebd42  
    353353        link = hash_table_find(&span->used, &key);
    354354        if (!link) {
    355                 panic("Freeing segment which is not known to be used (base=%"
    356                     PRIxn ", size=%" PRIdn ").", base, size);
     355                panic("Freeing segment which is not known to be used (base=%zx"
     356                    ", size=%zd).", base, size);
    357357        }
    358358        seg = hash_table_get_inst(link, ra_segment_t, uh_link);
     
    447447        irq_spinlock_unlock(&arena->lock, true);
    448448
    449         panic("Freeing to wrong arena (base=%" PRIxn ", size=%" PRIdn ").",
     449        panic("Freeing to wrong arena (base=%" PRIxPTR ", size=%zd).",
    450450            base, size);
    451451}
  • kernel/generic/src/mm/backend_user.c

    rb639d56 r35ebd42  
    129129        if (rc != EOK) {
    130130                log(LF_USPACE, LVL_FATAL,
    131                     "Page-in request for page %#" PRIxn
     131                    "Page-in request for page %#" PRIxPTR
    132132                    " at pager %d failed with error %d.",
    133133                    upage, pager_info->pager, rc);
Note: See TracChangeset for help on using the changeset viewer.