Changeset 08e103d4 in mainline for kernel/genarch/src/ofw/ofw_tree.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/genarch/src/ofw/ofw_tree.c
rd066259 r08e103d4 250 250 size_t j; 251 251 252 for (size_t i = 1; (i < str_ size(path)) && (node); i = j + 1) {252 for (size_t i = 1; (i < str_bytes(path)) && (node); i = j + 1) { 253 253 j = i; 254 while (j < str_ size(path) && path[j] != '/')254 while (j < str_bytes(path) && path[j] != '/') 255 255 j++; 256 256 … … 342 342 *size = 0; 343 343 for (size_t i = 0; i < node->properties; i++) 344 *size += str_ size(node->property[i].name) + 1 +344 *size += str_bytes(node->property[i].name) + 1 + 345 345 sizeof(node->property[i].size) + node->property[i].size; 346 346 … … 359 359 /* Property name */ 360 360 str_cpy(dump + pos, *size - pos, node->property[i].name); 361 pos += str_ size(node->property[i].name) + 1;361 pos += str_bytes(node->property[i].name) + 1; 362 362 363 363 /* Value size */ … … 393 393 if ((cur->parent) && (path)) 394 394 snprintf(cur_path, PATH_MAX_LEN, "%s.%s", path, cur->da_name); 395 else if (!str_ size(cur->da_name))395 else if (!str_bytes(cur->da_name)) 396 396 snprintf(cur_path, PATH_MAX_LEN, "firmware.ofw"); 397 397 else
Note:
See TracChangeset
for help on using the changeset viewer.