Changeset a721f6a in mainline for kernel/generic
- 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
- Location:
- kernel/generic
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/print.h
r9efff92 ra721f6a 39 39 #include <stdarg.h> 40 40 41 #define EOF (-1)41 #define EOF (-1) 42 42 43 43 extern int puts(const char *s); -
kernel/generic/include/printf/printf_core.h
r9efff92 ra721f6a 51 51 } printf_spec_t; 52 52 53 int printf_core(const char *fmt, printf_spec_t *ps, va_list ap);53 extern int printf_core(const char *fmt, printf_spec_t *ps, va_list ap); 54 54 55 55 #endif -
kernel/generic/src/main/version.c
r9efff92 ra721f6a 59 59 { 60 60 printf("%s, release %s (%s)%s\nBuilt%s for %s\n%s\n", 61 61 project, release, name, revision, timestamp, arch, copyright); 62 62 } 63 63 -
kernel/generic/src/printf/printf.c
r9efff92 ra721f6a 34 34 35 35 #include <print.h> 36 #include <stdarg.h> 36 37 37 38 int printf(const char *fmt, ...) -
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.