Ticket #9297: 0001-64-bit-fixes-for-kernel-with-KDEBUG_LEVEL-0.patch

File 0001-64-bit-fixes-for-kernel-with-KDEBUG_LEVEL-0.patch, 1.3 KB (added by diver, 8 years ago)
  • src/system/kernel/locks/lock.cpp

    From e30279ea7ece6ddef4f507e6b1f8601c44e20fd1 Mon Sep 17 00:00:00 2001
    From: Sergei Reznikov <diver@gelios.net>
    Date: Mon, 17 Dec 2012 22:14:47 +0400
    Subject: [PATCH] 64-bit fixes for kernel with KDEBUG_LEVEL = 0
    
    ---
     src/system/kernel/locks/lock.cpp |    2 +-
     src/system/kernel/sem.cpp        |    2 +-
     2 files changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/src/system/kernel/locks/lock.cpp b/src/system/kernel/locks/lock.cpp
    index fda4d32..caebd36 100644
    a b dump_mutex_info(int argc, char** argv)  
    891891#if KDEBUG
    892892    kprintf("  holder:          %" B_PRId32 "\n", lock->holder);
    893893#else
    894     kprintf("  count:           %ld\n", lock->count);
     894    kprintf("  count:           %" B_PRId32 "\n", lock->count);
    895895#endif
    896896
    897897    kprintf("  waiting threads:");
  • src/system/kernel/sem.cpp

    diff --git a/src/system/kernel/sem.cpp b/src/system/kernel/sem.cpp
    index 747428e..13fe243 100644
    a b dump_sem(struct sem_entry* sem)  
    209209        else
    210210            unset_debug_variable("_releaser");
    211211#else
    212         kprintf("last acquired by: %ld\n", sem->u.used.last_acquirer);
     212        kprintf("last acquired by: %" B_PRId32 "\n", sem->u.used.last_acquirer);
    213213#endif
    214214
    215215        if (sem->u.used.last_acquirer != 0)