Changeset 65 for trunk/kernel


Ignore:
Timestamp:
Jun 26, 2017, 5:26:49 PM (5 years ago)
Author:
max@…
Message:

use %p to silence a few warnings

Location:
trunk/kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/devices/dev_fbf.c

    r23 r65  
    146146    if( error )
    147147    {
    148         printk("\n[ERROR] in %s : cannot translate vaddr = %x in process %x\n",
    149                __FUNCTION__ , (uint32_t)buffer , this->process->pid );
     148        printk("\n[ERROR] in %s : cannot translate vaddr = %p in process %x\n",
     149               __FUNCTION__ , buffer , this->process->pid );
    150150        return EINVAL;
    151151    }
    152152
    153     fbf_dmsg("\n[INFO] %s : thread %x in process %x / vaddr = %x / paddr = %l\n",
    154              __FUNCTION__ , this->trdid , this->process->pid , (uint32_t)buffer , buf_paddr );
     153    fbf_dmsg("\n[INFO] %s : thread %x in process %x / vaddr = %p / paddr = %l\n",
     154             __FUNCTION__ , this->trdid , this->process->pid , buffer , buf_paddr );
    155155
    156156    // get extended pointer on FBF chdev descriptor
  • trunk/kernel/mm/kcm.c

    r53 r65  
    8080                 + (index * kcm->block_size) );
    8181
    82         kcm_dmsg("\n[INFO] %s : allocated one block  %s / ptr = %x / page = %x / count = %d\n",
    83                  __FUNCTION__ , kmem_type_str( kcm->type ) , (uint32_t)ptr ,
     82        kcm_dmsg("\n[INFO] %s : allocated one block  %s / ptr = %p / page = %x / count = %d\n",
     83                 __FUNCTION__ , kmem_type_str( kcm->type ) , ptr ,
    8484             (intptr_t)kcm_page , kcm_page->count );
    8585
Note: See TracChangeset for help on using the changeset viewer.