Changeset 08e103d4 in mainline for kernel/generic/src/console/cmd.c
- Timestamp:
- 2019-02-05T18:26:05Z (6 years ago)
- Children:
- 1d2f85e
- Parents:
- d066259
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-05 16:16:55)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-05 18:26:05)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/console/cmd.c
rd066259 r08e103d4 668 668 list_foreach(cmd_list, link, cmd_info_t, hlp) { 669 669 spinlock_lock(&hlp->lock); 670 if (str_ length(hlp->name) > len)671 len = str_ length(hlp->name);670 if (str_code_points(hlp->name) > len) 671 len = str_code_points(hlp->name); 672 672 spinlock_unlock(&hlp->lock); 673 673 } … … 919 919 spinlock_lock(&hlp->lock); 920 920 921 if (str_lcmp(hlp->name, (const char *) argv->buffer, str_ length(hlp->name)) == 0) {921 if (str_lcmp(hlp->name, (const char *) argv->buffer, str_code_points(hlp->name)) == 0) { 922 922 printf("%s - %s\n", hlp->name, hlp->description); 923 923 if (hlp->help) … … 1486 1486 1487 1487 for (test = tests; test->name != NULL; test++) { 1488 if (str_ length(test->name) > len)1489 len = str_ length(test->name);1488 if (str_code_points(test->name) > len) 1489 len = str_code_points(test->name); 1490 1490 } 1491 1491
Note:
See TracChangeset
for help on using the changeset viewer.