/trunk/kernel/genarch/src/ofw/ofw_tree.c |
---|
37,6 → 37,7 |
#include <genarch/ofw/ofw_tree.h> |
#include <arch/memstr.h> |
#include <mm/slab.h> |
#include <func.h> |
#include <print.h> |
#include <panic.h> |
236,8 → 237,10 |
*/ |
static void ofw_tree_node_print(const ofw_tree_node_t *node, const char *path) |
{ |
char p[PATH_MAX_LEN]; |
char *p; |
p = (char *) malloc(PATH_MAX_LEN, 0); |
if (node->parent) { |
snprintf(p, PATH_MAX_LEN, "%s/%s", path, node->da_name); |
printf("%s\n", p); |
251,6 → 254,8 |
if (node->peer) |
ofw_tree_node_print(node->peer, path); |
free(p); |
} |
/** Print the structure of the OpenFirmware device tree. */ |
/trunk/kernel/generic/src/console/kconsole.c |
---|
204,7 → 204,7 |
*/ |
static int cmdtab_compl(char *name) |
{ |
char output[MAX_SYMBOL_NAME+1]; |
static char output[MAX_SYMBOL_NAME+1]; |
link_t *startpos = NULL; |
const char *foundtxt; |
int found = 0; |
244,7 → 244,7 |
{ |
static int histposition = 0; |
char tmp[MAX_CMDLINE+1]; |
static char tmp[MAX_CMDLINE+1]; |
int curlen = 0, position = 0; |
char *current = history[histposition]; |
int i; |
433,7 → 433,7 |
static int parse_int_arg(char *text, size_t len, unative_t *result) |
{ |
char symname[MAX_SYMBOL_NAME]; |
static char symname[MAX_SYMBOL_NAME]; |
uintptr_t symaddr; |
bool isaddr = false; |
bool isptr = false; |