Changeset 08e103d4 in mainline for kernel/generic/src/sysinfo/sysinfo.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/sysinfo/sysinfo.c
rd066259 r08e103d4 530 530 if (spaces == 0) { 531 531 printf("%s", cur->name); 532 length = str_ length(cur->name);532 length = str_code_points(cur->name); 533 533 } else { 534 534 sysinfo_indent(spaces); 535 535 printf(".%s", cur->name); 536 length = str_ length(cur->name) + 1;536 length = str_code_points(cur->name) + 1; 537 537 } 538 538 … … 747 747 size_t size = 0; 748 748 for (sysinfo_item_t *cur = subtree; cur; cur = cur->next) 749 size += str_ size(cur->name) + 1;749 size += str_bytes(cur->name) + 1; 750 750 751 751 if (dry_run) { … … 762 762 for (sysinfo_item_t *cur = subtree; cur; cur = cur->next) { 763 763 str_cpy(names + pos, size - pos, cur->name); 764 pos += str_ size(cur->name) + 1;764 pos += str_bytes(cur->name) + 1; 765 765 } 766 766
Note:
See TracChangeset
for help on using the changeset viewer.