Changeset ed5ad30 in mainline for boot/arch/sparc64/loader/ofwarch.c


Ignore:
Timestamp:
2009-08-24T15:09:13Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3fa3160
Parents:
e0565005
Message:

reflect the change of the names of the macro

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/arch/sparc64/loader/ofwarch.c

    re0565005 red5ad30  
    7878        for (cpus = 0; (child != 0) && (child != -1);
    7979            child = ofw_get_peer_node(child), cpus++) {
    80                 char type_name[BUF_SIZE];
     80                char type_name[OFW_TREE_PROPERTY_MAX_VALUELEN];
    8181               
    8282                if (ofw_get_property(child, "device_type", type_name,
    83                     sizeof(type_name)) > 0) {
     83                    OFW_TREE_PROPERTY_MAX_VALUELEN) > 0) {
     84                        type_name[OFW_TREE_PROPERTY_MAX_VALUELEN - 1] = 0;
    8485                        if (strcmp(type_name, "cpu") == 0) {
    8586                                uint32_t mid;
     
    135136        int cpus = wake_cpus_in_node(node, current_mid, physmem_start);
    136137        while ((node != 0) && (node != -1)) {
    137                 char name[BUF_SIZE];
     138                char name[OFW_TREE_PROPERTY_MAX_VALUELEN];
    138139               
    139140                if (ofw_get_property(node, "name", name,
    140                     sizeof(name)) > 0) {
     141                    OFW_TREE_PROPERTY_MAX_VALUELEN) > 0) {
     142                        name[OFW_TREE_PROPERTY_MAX_VALUELEN - 1] = 0;
    141143                        if (strcmp(name, "cmp") == 0) {
    142144                                phandle subnode = ofw_get_child_node(node);
Note: See TracChangeset for help on using the changeset viewer.