Changeset e0565005 in mainline for boot/genarch/ofw_tree.c


Ignore:
Timestamp:
2009-08-24T14:41:42Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ed5ad30
Parents:
21d8020
Message:

initialize and setup all displays which can be detected in OFW tree (not only stdin)
reduce the number of newlines during boot (speedups especially in simulators)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/genarch/ofw_tree.c

    r21d8020 re0565005  
    3535#include <asm.h>
    3636#include <memstr.h>
    37 
    38 #define MAX_PATH_LEN  256
    3937
    4038static ofw_tree_node_t *ofw_tree_node_alloc(void)
     
    10199                 * Get the disambigued name.
    102100                 */
    103                 static char path[MAX_PATH_LEN + 1];
    104                 size_t len = ofw_package_to_path(current, path, MAX_PATH_LEN);
     101                static char path[OFW_TREE_PATH_MAX_LEN + 1];
     102                size_t len = ofw_package_to_path(current, path, OFW_TREE_PATH_MAX_LEN);
    105103                if (len == -1)
    106104                        return;
     
    168166                        memcpy(name, name2, OFW_TREE_PROPERTY_MAX_NAMELEN);
    169167                        memcpy(property[i].name, name, OFW_TREE_PROPERTY_MAX_NAMELEN);
    170                         property[i].name[OFW_TREE_PROPERTY_MAX_NAMELEN] = '\0';
     168                        property[i].name[OFW_TREE_PROPERTY_MAX_NAMELEN - 1] = '\0';
    171169                       
    172170                        size_t size = ofw_get_proplen(current, name);
Note: See TracChangeset for help on using the changeset viewer.