Changeset a721f6a in mainline for kernel/generic/src/printf/printf_core.c
- Timestamp:
- 2010-04-23T15:15:09Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 80badbe
- Parents:
- 9efff92
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/printf/printf_core.c
r9efff92 ra721f6a 46 46 /** show prefixes 0x or 0 */ 47 47 #define __PRINTF_FLAG_PREFIX 0x00000001 48 48 49 /** signed / unsigned number */ 49 50 #define __PRINTF_FLAG_SIGNED 0x00000002 51 50 52 /** print leading zeroes */ 51 53 #define __PRINTF_FLAG_ZEROPADDED 0x00000004 54 52 55 /** align to left */ 53 56 #define __PRINTF_FLAG_LEFTALIGNED 0x00000010 57 54 58 /** always show + sign */ 55 59 #define __PRINTF_FLAG_SHOWPLUS 0x00000020 60 56 61 /** print space instead of plus */ 57 62 #define __PRINTF_FLAG_SPACESIGN 0x00000040 63 58 64 /** show big characters */ 59 65 #define __PRINTF_FLAG_BIGCHARS 0x00000080 66 60 67 /** number has - sign */ 61 68 #define __PRINTF_FLAG_NEGATIVE 0x00000100 … … 79 86 } qualifier_t; 80 87 81 static c har nullstr[]= "(NULL)";82 static c har digits_small[]= "0123456789abcdef";83 static c har digits_big[]= "0123456789ABCDEF";84 static c har invalch = U_SPECIAL;88 static const char *nullstr = "(NULL)"; 89 static const char *digits_small = "0123456789abcdef"; 90 static const char *digits_big = "0123456789ABCDEF"; 91 static const char invalch = U_SPECIAL; 85 92 86 93 /** Print one or more characters without adding newline. … … 351 358 uint32_t flags, printf_spec_t *ps) 352 359 { 353 c har *digits;360 const char *digits; 354 361 if (flags & __PRINTF_FLAG_BIGCHARS) 355 362 digits = digits_big;
Note:
See TracChangeset
for help on using the changeset viewer.