Print out 'foo devices:' as the line before displaying a group of
devices in 'lsdev' output rather than printing out a pointer to the print function since the user really could care less about the pointer value. Perhaps this was intended to be a debugging printf?
This commit is contained in:
parent
b456f7e6b3
commit
f0699bb775
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=85997
@ -469,7 +469,7 @@ command_lsdev(int argc, char *argv[])
|
||||
pager_open();
|
||||
for (i = 0; devsw[i] != NULL; i++) {
|
||||
if (devsw[i]->dv_print != NULL){
|
||||
sprintf(line, "%s @ %p\n", devsw[i]->dv_name, devsw[i]->dv_print);
|
||||
sprintf(line, "%s devices:\n", devsw[i]->dv_name);
|
||||
if (pager_output(line))
|
||||
break;
|
||||
devsw[i]->dv_print(verbose);
|
||||
|
Loading…
Reference in New Issue
Block a user