Whoops. When you `ls' a kernel with lots and lots of devices, guess what?
It scrolls off your screen! :-) Add crude "more" type processing.
This commit is contained in:
parent
5e235068bc
commit
0729dc4924
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=4089
@ -38,7 +38,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: userconfig.c,v 1.3 1994/10/28 18:50:36 davidg Exp $
|
||||
* $Id: userconfig.c,v 1.4 1994/10/30 20:44:20 bde Exp $
|
||||
*/
|
||||
|
||||
#include <sys/param.h>
|
||||
@ -311,8 +311,15 @@ static void
|
||||
lsdevtab(struct isa_device *dt)
|
||||
{
|
||||
int i;
|
||||
static int lineno = 0;
|
||||
|
||||
for (i = 0; dt->id_id != 0; dt++) {
|
||||
if (lineno > 22) {
|
||||
lineno = 0;
|
||||
printf("<hit any key> ");
|
||||
(void)cngetc();
|
||||
printf("\n");
|
||||
}
|
||||
printf("%s%d 0x%x %d %d 0x%x 0x%x %s\n",
|
||||
dt->id_driver->name, dt->id_unit, dt->id_iobase,
|
||||
ffs(dt->id_irq) - 1, dt->id_drq, dt->id_maddr,
|
||||
|
Loading…
Reference in New Issue
Block a user