Changeset 25eec4e in mainline for kernel/generic/src/console/kconsole.c
- Timestamp:
- 2013-04-19T18:38:18Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6d717a4
- Parents:
- a1e2df13 (diff), 289cb7dd (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/console/kconsole.c
ra1e2df13 r25eec4e 524 524 /* It's a number - convert it */ 525 525 uint64_t value; 526 int rc = str_uint64_t(text, NULL, 0, true, &value); 526 char *end; 527 int rc = str_uint64_t(text, &end, 0, false, &value); 528 if (end != text + len) 529 rc = EINVAL; 527 530 switch (rc) { 528 531 case EINVAL: 529 printf("Invalid number .\n");532 printf("Invalid number '%s'.\n", text); 530 533 return false; 531 534 case EOVERFLOW: 532 printf("Integer overflow .\n");535 printf("Integer overflow in '%s'.\n", text); 533 536 return false; 534 537 case EOK: … … 538 541 break; 539 542 default: 540 printf("Unknown error .\n");543 printf("Unknown error parsing '%s'.\n", text); 541 544 return false; 542 545 }
Note:
See TracChangeset
for help on using the changeset viewer.