Ignore:
Timestamp:
2013-04-19T18:38:18Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
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.
Message:

Merge mainline chages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/console/kconsole.c

    ra1e2df13 r25eec4e  
    524524                /* It's a number - convert it */
    525525                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;
    527530                switch (rc) {
    528531                case EINVAL:
    529                         printf("Invalid number.\n");
     532                        printf("Invalid number '%s'.\n", text);
    530533                        return false;
    531534                case EOVERFLOW:
    532                         printf("Integer overflow.\n");
     535                        printf("Integer overflow in '%s'.\n", text);
    533536                        return false;
    534537                case EOK:
     
    538541                        break;
    539542                default:
    540                         printf("Unknown error.\n");
     543                        printf("Unknown error parsing '%s'.\n", text);
    541544                        return false;
    542545                }
Note: See TracChangeset for help on using the changeset viewer.