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:
John Baldwin 2001-11-04 02:58:39 +00:00
parent b456f7e6b3
commit f0699bb775

View File

@ -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);