Changeset 594 for soft/giet_vm/giet_common/tty0.c
- Timestamp:
- Jul 8, 2015, 4:13:47 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_common/tty0.c
r495 r594 218 218 { 219 219 buf[7 - i] = HexaTab[val % 16]; 220 if (!(val /= 16)) break;220 if (!(val = (val>>4))) break; 221 221 } 222 222 len = i + 1; 223 223 pbuf = &buf[7 - i]; 224 break; 225 } 226 case ('X'): /* 32 bits hexadecimal unsigned on 10 char*/ 227 { 228 unsigned int val = va_arg( *args , unsigned int ); 229 if ( _tty0_write( "0x" , 2 ) ) goto return_error; 230 for(i = 0; i < 8; i++) 231 { 232 buf[7 - i] = HexaTab[val % 16]; 233 val = (val>>4); 234 } 235 len = 8; 236 pbuf = buf; 224 237 break; 225 238 }
Note: See TracChangeset
for help on using the changeset viewer.