Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 601 → Rev 602

/kernel/trunk/generic/src/console/cmd.c
358,7 → 358,7
symbol = get_symtab_entry(symaddr);
printf("Calling f(): 0x%p: %s\n", symaddr, symbol);
f = (__native (*)(void)) symaddr;
printf("Result: 0x%X\n", f());
printf("Result: 0x%p\n", f());
}
return 1;
382,7 → 382,7
symbol = get_symtab_entry(symaddr);
printf("Calling f(0x%x): 0x%p: %s\n", arg1, symaddr, symbol);
f = (__native (*)(__native)) symaddr;
printf("Result: 0x%x\n", f(arg1));
printf("Result: 0x%p\n", f(arg1));
}
return 1;
408,7 → 408,7
printf("Calling f(0x%x,0x%x): 0x%p: %s\n",
arg1, arg2, symaddr, symbol);
f = (__native (*)(__native,__native)) symaddr;
printf("Result: 0x%x\n", f(arg1, arg2));
printf("Result: 0x%p\n", f(arg1, arg2));
}
return 1;
435,7 → 435,7
printf("Calling f(0x%x,0x%x, 0x%x): 0x%p: %s\n",
arg1, arg2, arg3, symaddr, symbol);
f = (__native (*)(__native,__native,__native)) symaddr;
printf("Result: 0x%x\n", f(arg1, arg2, arg3));
printf("Result: 0x%p\n", f(arg1, arg2, arg3));
}
return 1;
/kernel/trunk/generic/src/console/kconsole.c
215,7 → 215,7
if (!found)
return 0;
 
if (found > 1) {
if (found > 1 && !strlen(output)) {
printf("\n");
startpos = NULL;
while ((foundtxt = cmdtab_search_one(name, &startpos))) {
286,18 → 286,20
continue;
for (i=0;tmp[i] && curlen < MAX_CMDLINE;i++,curlen++)
insert_char(current, tmp[i], i+position);
if (found == 1) { /* One match */
for (i=position;i<curlen;i++)
 
if (strlen(tmp) || found==1) { /* If we have a hint */
for (i=position;i<curlen;i++)
putchar(current[i]);
position += strlen(tmp);
/* Add space to end */
if (position == curlen && curlen < MAX_CMDLINE) {
if (found == 1 && position == curlen && \
curlen < MAX_CMDLINE) {
current[position] = ' ';
curlen++;
position++;
putchar(' ');
}
} else {
} else { /* No hint, table was printed */
printf("%s> ", prompt);
for (i=0; i<curlen;i++)
putchar(current[i]);
/kernel/trunk/generic/src/debug/symtab.c
172,7 → 172,7
if (!found)
return 0;
 
if (found > 1) {
if (found > 1 && !strlen(output)) {
printf("\n");
startpos = 0;
while ((foundtxt = symtab_search_one(name, &startpos))) {