Changeset d7baee6 in mainline for kernel/generic/src/printf/printf_core.c
- Timestamp:
- 2007-01-17T13:03:08Z (17 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- df4ed85
- Parents:
- c738d65
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/printf/printf_core.c
rc738d65 rd7baee6 268 268 if (flags & __PRINTF_FLAG_PREFIX) { 269 269 switch(base) { 270 271 272 273 274 275 276 277 278 270 case 2: /* Binary formating is not standard, but usefull */ 271 size += 2; 272 break; 273 case 8: 274 size++; 275 break; 276 case 16: 277 size += 2; 278 break; 279 279 } 280 280 } … … 329 329 if (flags & __PRINTF_FLAG_PREFIX) { 330 330 switch(base) { 331 case 2: /* Binary formating is not standard, but usefull */ 332 if (printf_putchar('0', ps) == 1) 331 case 2: /* Binary formating is not standard, but usefull */ 332 if (printf_putchar('0', ps) == 1) 333 counter++; 334 if (flags & __PRINTF_FLAG_BIGCHARS) { 335 if (printf_putchar('B', ps) == 1) 333 336 counter++; 334 if (flags & __PRINTF_FLAG_BIGCHARS) { 335 if (printf_putchar('B', ps) == 1) 336 counter++; 337 } else { 338 if (printf_putchar('b', ps) == 1) 339 counter++; 340 } 341 break; 342 case 8: 343 if (printf_putchar('o', ps) == 1) 337 } else { 338 if (printf_putchar('b', ps) == 1) 344 339 counter++; 345 break; 346 case 16: 347 if (printf_putchar('0', ps) == 1) 340 } 341 break; 342 case 8: 343 if (printf_putchar('o', ps) == 1) 344 counter++; 345 break; 346 case 16: 347 if (printf_putchar('0', ps) == 1) 348 counter++; 349 if (flags & __PRINTF_FLAG_BIGCHARS) { 350 if (printf_putchar('X', ps) == 1) 348 351 counter++; 349 if (flags & __PRINTF_FLAG_BIGCHARS) { 350 if (printf_putchar('X', ps) == 1) 351 counter++; 352 } else { 353 if (printf_putchar('x', ps) == 1) 354 counter++; 355 } 356 break; 352 } else { 353 if (printf_putchar('x', ps) == 1) 354 counter++; 355 } 356 break; 357 357 } 358 358 }
Note:
See TracChangeset
for help on using the changeset viewer.