Changeset 063a3647 in mainline for kernel/genarch/src/ofw/ofw_tree.c


Ignore:
Timestamp:
2019-01-06T13:45:09Z (5 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3d7594d, 9363e258
Parents:
af7b85b
Message:

Make the OFW tree root appear as 'ofw' in sysinfo

The OFW root node has an empty name which creates strange-looking
sysinfo paths such as 'firmware..aliases'. By renaming the OFW root, the
previous path becomes 'firmware.ofw.aliases'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/src/ofw/ofw_tree.c

    raf7b85b r063a3647  
    393393                if ((cur->parent) && (path))
    394394                        snprintf(cur_path, PATH_MAX_LEN, "%s.%s", path, cur->da_name);
     395                else if (!str_size(cur->da_name))
     396                        snprintf(cur_path, PATH_MAX_LEN, "firmware.ofw");
    395397                else
    396398                        snprintf(cur_path, PATH_MAX_LEN, "firmware.%s", cur->da_name);
Note: See TracChangeset for help on using the changeset viewer.