Ignore:
Timestamp:
Aug 7, 2017, 12:50:17 PM (7 years ago)
Author:
alain
Message:

Introduce the delayed context switch if current thread has a lock.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kernel/kern/printk.h

    r296 r337  
    8989 * @ condition     : condition that must be true.
    9090 * @ function_name : name of the calling function.
    91  * @ string        : error message if condition is false.
     91 * @ format        : formated string
    9292 *********************************************************************************/
    93 inline void assert( bool_t       condition,
    94                     const char * function_name,
    95                     char       * string );
     93void assert( bool_t       condition,
     94             const char * function_name,
     95             char       * format , ... );
    9696
    9797///////////////////////////////////////////////////////////////////////////////////
     
    255255#endif
    256256
     257#if CONFIG_RPCG_DEBUG
     258#define rpcg_dmsg(...)   printk(__VA_ARGS__)
     259#else
     260#define rpcg_dmsg(...)
     261#endif
     262
    257263#if CONFIG_SCHED_DEBUG
    258264#define sched_dmsg(...)   printk(__VA_ARGS__)
     
    286292
    287293#if CONFIG_VFS_DEBUG
    288 #define vfs_dmsg(...)   printk(__VA_ARGS__)
     294#define vfs_dmsg(...)   if(hal_time_stamp() > CONFIG_VFS_DEBUG) printk(__VA_ARGS__)
    289295#else
    290296#define vfs_dmsg(...)
Note: See TracChangeset for help on using the changeset viewer.