Changeset ed88c8e in mainline for kernel/generic/src
- Timestamp:
- 2018-05-29T13:25:07Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- fc0b2a8
- Parents:
- a57fa32
- git-author:
- Jiri Svoboda <jiri@…> (2018-05-28 17:24:17)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-05-29 13:25:07)
- Location:
- kernel/generic/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/console/console.c
ra57fa32 red88c8e 262 262 if (count > 0) { 263 263 /* Space, backspace, space */ 264 put char('\b');265 put char(' ');266 put char('\b');264 putwchar('\b'); 265 putwchar(' '); 266 putwchar('\b'); 267 267 268 268 count--; … … 273 273 274 274 if (chr_encode(ch, buf, &offset, buflen - 1) == EOK) { 275 put char(ch);275 putwchar(ch); 276 276 count++; 277 277 buf[offset] = 0; … … 286 286 { 287 287 wchar_t ch = indev_pop_character(indev); 288 put char(ch);288 putwchar(ch); 289 289 return ch; 290 290 } … … 356 356 } 357 357 358 void put char(const wchar_t ch)358 void putwchar(const wchar_t ch) 359 359 { 360 360 bool ordy = ((stdout) && (stdout->op->write)); … … 373 373 * for possible future output. 374 374 * 375 * The early_put char() function is used to output375 * The early_putwchar() function is used to output 376 376 * the character for low-level debugging purposes. 377 377 * Note that the early_putc() function might be 378 378 * a no-op on certain hardware configurations. 379 379 */ 380 early_put char(ch);380 early_putwchar(ch); 381 381 } 382 382 -
kernel/generic/src/console/kconsole.c
ra57fa32 red88c8e 160 160 size_t i; 161 161 for (i = 0; i < count; i++) 162 put char(ch);162 putwchar(ch); 163 163 } 164 164 … … 339 339 if (ch == '\n') { 340 340 /* Enter */ 341 put char(ch);341 putwchar(ch); 342 342 break; 343 343 } … … 350 350 if (wstr_remove(current, position - 1)) { 351 351 position--; 352 put char('\b');352 putwchar('\b'); 353 353 printf("%ls ", current + position); 354 354 print_cc('\b', wstr_length(current) - position + 1); … … 363 363 for (; (current[position] != 0) && (!isspace(current[position])); 364 364 position++) 365 put char(current[position]);365 putwchar(current[position]); 366 366 367 367 … … 459 459 /* Left */ 460 460 if (position > 0) { 461 put char('\b');461 putwchar('\b'); 462 462 position--; 463 463 } … … 468 468 /* Right */ 469 469 if (position < wstr_length(current)) { 470 put char(current[position]);470 putwchar(current[position]); 471 471 position++; 472 472 } -
kernel/generic/src/printf/vprintf.c
ra57fa32 red88c8e 47 47 48 48 while (offset < size) { 49 put char(str_decode(str, &offset, size));49 putwchar(str_decode(str, &offset, size)); 50 50 chars++; 51 51 } … … 60 60 61 61 while (offset < size) { 62 put char(str[chars]);62 putwchar(str[chars]); 63 63 chars++; 64 64 offset += sizeof(wchar_t); … … 75 75 76 76 while ((uc = str_decode(str, &offset, STR_NO_LIMIT)) != 0) { 77 put char(uc);77 putwchar(uc); 78 78 chars++; 79 79 } 80 80 81 put char('\n');81 putwchar('\n'); 82 82 return chars; 83 83 }
Note:
See TracChangeset
for help on using the changeset viewer.