Changeset 6b00876 in mainline for kernel/generic/src/console/kconsole.c
- Timestamp:
- 2016-03-16T09:22:06Z (9 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d9ffc54
- Parents:
- 0cfc18d3
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/console/kconsole.c
r0cfc18d3 r6b00876 362 362 putchar(current[position]); 363 363 364 if (position == 0)365 continue;366 364 367 365 /* … … 371 369 size_t beg; 372 370 unsigned sp = 0, narg = 0; 373 for (beg = position - 1; (beg > 0) && (!isspace(current[beg])); 374 beg--); 375 376 if (isspace(current[beg])) 377 beg++; 378 379 wstr_to_str(tmp, position - beg + 1, current + beg); 371 if (position == 0) { 372 tmp[0] = '\0'; 373 beg = 0; 374 } 375 else { 376 for (beg = position - 1; (beg > 0) && (!isspace(current[beg])); 377 beg--); 378 379 if (isspace(current[beg])) 380 beg++; 381 382 wstr_to_str(tmp, position - beg + 1, current + beg); 383 } 380 384 381 385 /* Count which argument number are we tabbing (narg=0 is cmd) */
Note:
See TracChangeset
for help on using the changeset viewer.