diff options
author | 2007-07-05 11:28:30 +0000 | |
---|---|---|
committer | 2007-07-05 11:28:30 +0000 | |
commit | 6dbcccc603d1bfb810c18fa4552209c46710acb4 (patch) | |
tree | 34d54e4906a8002e883492b67d1cf3d9949794d6 | |
parent | use a more traditional while() instead of for() for getopt(). (diff) | |
download | wireguard-openbsd-6dbcccc603d1bfb810c18fa4552209c46710acb4.tar.xz wireguard-openbsd-6dbcccc603d1bfb810c18fa4552209c46710acb4.zip |
Print offset and irq for devices that attach to ssio(4).
-rw-r--r-- | sys/arch/hppa/dev/ssio.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/arch/hppa/dev/ssio.c b/sys/arch/hppa/dev/ssio.c index f6d3cf60c91..2902369f6b0 100644 --- a/sys/arch/hppa/dev/ssio.c +++ b/sys/arch/hppa/dev/ssio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssio.c,v 1.5 2007/07/03 20:49:57 kettenis Exp $ */ +/* $OpenBSD: ssio.c,v 1.6 2007/07/05 11:28:30 kettenis Exp $ */ /* * Copyright (c) 2007 Mark Kettenis @@ -353,6 +353,12 @@ ssio_print(void *aux, const char *pnp) struct ssio_attach_args *saa = aux; if (pnp) - printf("%s at %s\n", saa->saa_name, pnp); + printf("%s at %s offset\n", saa->saa_name, pnp); + if (saa->saa_iobase) { + printf(" offset %lx", saa->saa_iobase); + if (!pnp && saa->saa_irq >= 0) + printf(" irq %d", saa->saa_irq); + } + return (UNCONF); } |