Changeset 98000fb in mainline for kernel/generic/src/printf
- Timestamp:
- 2009-06-03T19:34:45Z (16 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 301ff30
- Parents:
- 69e68e3
- Location:
- kernel/generic/src/printf
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/printf/printf_core.c
r69e68e3 r98000fb 175 175 static int print_char(const char ch, int width, uint32_t flags, printf_spec_t *ps) 176 176 { 177 count_t counter = 0;177 size_t counter = 0; 178 178 if (!(flags & __PRINTF_FLAG_LEFTALIGNED)) { 179 179 while (--width > 0) { … … 213 213 static int print_wchar(const wchar_t ch, int width, uint32_t flags, printf_spec_t *ps) 214 214 { 215 count_t counter = 0;215 size_t counter = 0; 216 216 if (!(flags & __PRINTF_FLAG_LEFTALIGNED)) { 217 217 while (--width > 0) { … … 256 256 257 257 /* Print leading spaces. */ 258 count_t strw = str_length(str);258 size_t strw = str_length(str); 259 259 if (precision == 0) 260 260 precision = strw; 261 261 262 262 /* Left padding */ 263 count_t counter = 0;263 size_t counter = 0; 264 264 width -= precision; 265 265 if (!(flags & __PRINTF_FLAG_LEFTALIGNED)) { … … 312 312 313 313 /* Left padding */ 314 count_t counter = 0;314 size_t counter = 0; 315 315 width -= precision; 316 316 if (!(flags & __PRINTF_FLAG_LEFTALIGNED)) { … … 434 434 435 435 width -= precision + size - number_size; 436 count_t counter = 0;436 size_t counter = 0; 437 437 438 438 if (!(flags & __PRINTF_FLAG_LEFTALIGNED)) { … … 597 597 size_t j = 0; /* Index to the first not printed nonformating character */ 598 598 599 count_t counter = 0;/* Number of characters printed */599 size_t counter = 0; /* Number of characters printed */ 600 600 int retval; /* Return values from nested functions */ 601 601 -
kernel/generic/src/printf/vprintf.c
r69e68e3 r98000fb 47 47 { 48 48 size_t offset = 0; 49 count_t chars = 0;49 size_t chars = 0; 50 50 51 51 while (offset < size) { … … 60 60 { 61 61 size_t offset = 0; 62 count_t chars = 0;62 size_t chars = 0; 63 63 64 64 while (offset < size) { … … 74 74 { 75 75 size_t offset = 0; 76 count_t chars = 0;76 size_t chars = 0; 77 77 wchar_t uc; 78 78 -
kernel/generic/src/printf/vsnprintf.c
r69e68e3 r98000fb 83 83 * of string 84 84 */ 85 index_t index = 0;85 size_t index = 0; 86 86 87 87 while (index < size) { … … 131 131 static int vsnprintf_wstr_write(const wchar_t *str, size_t size, vsnprintf_data_t *data) 132 132 { 133 index_t index = 0;133 size_t index = 0; 134 134 135 135 while (index < (size / sizeof(wchar_t))) {
Note:
See TracChangeset
for help on using the changeset viewer.