Changeset 683 for trunk/kernel/kern/printk.h
- Timestamp:
- Jan 13, 2021, 12:36:17 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/printk.h
r669 r683 24 24 /////////////////////////////////////////////////////////////////////////////////// 25 25 // The printk.c and printk.h files define the functions used by the kernel 26 // to display messages on the kernel terminal TXT0, using a busy waiting policy.27 // I t calls synchronously the TXT0 driver, without descheduling.26 // to build, or display on terminal TXT0, formated strings. 27 // In case ofdisplay, it calls synchronously the TXT0 driver, without descheduling. 28 28 // 29 // For the formated string, the supported formats are defined below :29 // The supported formats are defined below : 30 30 // %c : single ascii character (8 bits) 31 // %b : exactly 2 hexadecimal digits (8 bits) 31 32 // %d : up to 10 digits decimal integer (32 bits) 32 33 // %u : up to 10 digits unsigned decimal (32 bits) … … 47 48 48 49 /********************************************************************************** 49 * These debugfunctions display a formated string defined by the <format,...>50 * These functions display a formated string defined by the <format,...> 50 51 * argument on the kernel terminal TXT0, with or without taking the TXT0 lock. 51 52 ********************************************************************************** … … 64 65 65 66 /********************************************************************************** 66 * This debug function displays a[ASSERT] message on kernel TXT0 terminal67 * This function displays an [ASSERT] message on kernel TXT0 terminal 67 68 * if Boolean expression <expr> is false. It prints a detailed message including: 68 69 * - the calling core [cxy,lpid] … … 83 84 * This function build a formated string in a buffer defined by the <buffer> 84 85 * and <buf_size> arguments, from the format defined by the <format,...> argument. 85 * This function set the NUL terminating character in target <buffer>. 86 * This function set the NUL terminating character in target <buffer>, 87 * but the returned length does not include this NUL character. 86 88 ********************************************************************************** 87 89 * @ buffer : pointer on target buffer (allocated by caller). … … 142 144 * @ string : buffer name or identifier. 143 145 * @ buffer : local pointer on bytes array. 144 * @ size : number of bytes bytesto display.146 * @ size : number of bytes to display. 145 147 *********************************************************************************/ 146 148 void putb( char * string,
Note: See TracChangeset
for help on using the changeset viewer.