Changeset f651e80 in mainline for kernel/genarch/src


Ignore:
Timestamp:
2009-01-08T12:07:38Z (17 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7447572
Parents:
c571f42
Message:

Make newlines in panic messages consistent. Add periods at end of messages so that it is obvious whether they are printed entirely.

Location:
kernel/genarch/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/src/drivers/ega/ega.c

    rc571f42 rf651e80  
    7979        backbuf = (uint8_t *) malloc(SCREEN * 2, 0);
    8080        if (!backbuf)
    81                 panic("Unable to allocate backbuffer.\n");
     81                panic("Unable to allocate backbuffer.");
    8282       
    8383        videoram = (uint8_t *) hw_map(videoram_phys, SCREEN * 2);
  • kernel/genarch/src/fb/fb.c

    rc571f42 rf651e80  
    457457                break;
    458458        default:
    459                 panic("Unsupported visual.\n");
     459                panic("Unsupported visual.");
    460460        }
    461461       
     
    489489        backbuf = (uint8_t *) malloc(bbsize, 0);
    490490        if (!backbuf)
    491                 panic("Unable to allocate backbuffer.\n");
     491                panic("Unable to allocate backbuffer.");
    492492       
    493493        glyphs = (uint8_t *) malloc(glyphsize, 0);
    494494        if (!glyphs)
    495                 panic("Unable to allocate glyphs.\n");
     495                panic("Unable to allocate glyphs.");
    496496       
    497497        bgscan = malloc(bgscanbytes, 0);
    498498        if (!bgscan)
    499                 panic("Unable to allocate background pixel.\n");
     499                panic("Unable to allocate background pixel.");
    500500       
    501501        memsetb(backbuf, bbsize, 0);
  • kernel/genarch/src/ofw/fhc.c

    rc571f42 rf651e80  
    6868                        }
    6969                        if (strcmp(ofw_tree_node_name(node->parent), "central") != 0)
    70                                 panic("Unexpected parent node: %s.\n", ofw_tree_node_name(node->parent));
     70                                panic("Unexpected parent node: %s.", ofw_tree_node_name(node->parent));
    7171                       
    7272                        ofw_central_reg_t central_reg;
     
    8585{
    8686        if (node->parent->parent)
    87                 panic("Unexpected parent node: %s.\n", ofw_tree_node_name(node->parent));
     87                panic("Unexpected parent node: %s.", ofw_tree_node_name(node->parent));
    8888       
    8989        ofw_tree_property_t *prop;
  • kernel/genarch/src/ofw/ofw_tree.c

    rc571f42 rf651e80  
    8686        prop = ofw_tree_getprop(node, "name");
    8787        if (!prop)
    88                 panic("Node without name property.\n");
     88                panic("Node without name property.");
    8989               
    9090        if (prop->size < 2)
    91                 panic("Invalid name property.\n");
     91                panic("Invalid name property.");
    9292       
    9393        return prop->value;
  • kernel/genarch/src/ofw/pci.c

    rc571f42 rf651e80  
    102102        prop = ofw_tree_getprop(node, "assigned-addresses");
    103103        if (!prop)
    104                 panic("Can't find \"assigned-addresses\" property.\n");
     104                panic("Cannot find 'assigned-addresses' property.");
    105105       
    106106        assigned_addresses = prop->size / sizeof(ofw_pci_reg_t);
Note: See TracChangeset for help on using the changeset viewer.