From f0699bb775d8f72d698c9205b0540a55b9ac152d Mon Sep 17 00:00:00 2001 From: John Baldwin Date: Sun, 4 Nov 2001 02:58:39 +0000 Subject: [PATCH] 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? --- sys/boot/common/commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/boot/common/commands.c b/sys/boot/common/commands.c index 34b31a272653..75b60bcdaca8 100644 --- a/sys/boot/common/commands.c +++ b/sys/boot/common/commands.c @@ -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);