Changeset 98000fb in mainline for kernel/generic/src/printf/printf_core.c
- Timestamp:
- 2009-06-03T19:34:45Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 301ff30
- Parents:
- 69e68e3
- File:
-
- 1 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
Note:
See TracChangeset
for help on using the changeset viewer.