Changeset 246 for trunk/kernel/kern/printk.c
- Timestamp:
- Jul 20, 2017, 12:55:23 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kernel/kern/printk.c
r188 r246 129 129 case ('l'): // 64 bits hexadecimal 130 130 { 131 uint32_t 131 uint32_t imax; 132 132 uint64_t val; 133 133 … … 153 153 len = i + 1; 154 154 pbuf = &buf[(imax-1) - i]; 155 break; 156 } 157 case ('X'): // 32 bits hexadecimal on 8 characters 158 { 159 uint32_t val = va_arg( args , uint32_t ); 160 for(i = 0; i < 8; i++) 161 { 162 buf[7 - i] = HexaTab[val % 16]; 163 val = (val>>4); 164 } 165 len = 8; 166 pbuf = buf; 155 167 break; 156 168 }
Note: See TracChangeset
for help on using the changeset viewer.