Changeset 279 for trunk/kernel/kern/printk.c
- Timestamp:
- Jul 27, 2017, 12:23:29 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/printk.c
r246 r279 401 401 } 402 402 403 ////////////////////////////////////////404 void nolock_printk( char * format , ...)405 {406 va_list args;407 408 // call kernel_printf on TXT0, in busy waiting mode409 va_start( args , format );410 kernel_printf( 0 , 1 , format , &args );411 va_end( args );412 }413 414 403 /////////////////////////////////////////// 415 404 inline void assert( bool_t condition, … … 424 413 } 425 414 426 //////////////////////////////////////////////////427 inline void nolock_assert( bool_t condition,428 const char * function_name,429 char * string )430 {431 if( condition == false )432 {433 nolock_printk("\n[PANIC] in %s : %s\n" , function_name , string );434 hal_core_sleep();435 }436 }437 438 439 415 440 416 // Local Variables:
Note: See TracChangeset
for help on using the changeset viewer.