Changeset 23 for trunk/kernel/kern/printk.h
- Timestamp:
- Jun 18, 2017, 10:06:41 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/printk.h
r16 r23 46 46 47 47 /********************************************************************************** 48 * This function build a formated string. 49 * The supported formats are defined below : 50 * %c : single character 51 * %d : signed decimal 32 bits integer 52 * %u : unsigned decimal 32 bits integer 53 * %x : hexadecimal 32 bits integer 54 * %l : hexadecimal 64 bits integer 55 * %s : NUL terminated character string 56 ********************************************************************************** 57 * @ string : pointer on target buffer (allocated by caller). 58 * @ length : target buffer length (number of bytes). 59 * @ format : format respecting the printf syntax. 60 * @ returns the string length (including NUL) if success / return -1 if error. 61 *********************************************************************************/ 62 uint32_t snprintf( char * string, 63 uint32_t length, 64 char * format, ... ); 65 66 /********************************************************************************** 48 67 * This function displays a formated string on the kernel terminal TXT0, 49 68 * using a busy waiting policy: It calls directly the relevant TXT driver, … … 52 71 * @ format : formated string. 53 72 *********************************************************************************/ 54 externvoid printk( char* format, ... );73 void printk( char* format, ... ); 55 74 56 75 /********************************************************************************** … … 62 81 * @ format : formated string. 63 82 *********************************************************************************/ 64 externvoid user_printk( char* format, ... );83 void user_printk( char* format, ... ); 65 84 66 85 /********************************************************************************** … … 211 230 #else 212 231 #define sched_dmsg(...) 232 #endif 233 234 #if CONFIG_SIGNAL_DEBUG 235 #define signal_dmsg(...) printk(__VA_ARGS__) 236 #else 237 #define signal_dmsg(...) 213 238 #endif 214 239
Note: See TracChangeset
for help on using the changeset viewer.