diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2003-12-23 23:07:48 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2003-12-23 23:07:48 +0000 |
commit | 89fcf7c5bd134cb52bcd9bbad34944f112e2f594 (patch) | |
tree | cf8eca3e38cd32bc6a0b3271bc752af735c0ad73 /sys/arch/hppa | |
parent | 18548ff0915f0ff940ab1cc0fb40bc361461767e (diff) |
make it a righteous print of the bootpath (tail gravity it has that is)
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r-- | sys/arch/hppa/hppa/autoconf.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/arch/hppa/hppa/autoconf.c b/sys/arch/hppa/hppa/autoconf.c index 947bd3fc873..1b5af7b9ddc 100644 --- a/sys/arch/hppa/hppa/autoconf.c +++ b/sys/arch/hppa/hppa/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.38 2003/12/20 21:49:06 miod Exp $ */ +/* $OpenBSD: autoconf.c,v 1.39 2003/12/23 23:07:47 mickey Exp $ */ /* * Copyright (c) 1998-2003 Michael Shalayeff @@ -371,10 +371,11 @@ print_devpath(const char *label, struct pz_device *pz) printf("%s: ", label); - for (i = 0; i < 6 && pz->pz_bc[i] >= 0; i++) - printf("%s%d", i? "/" : "", pz->pz_bc[i]); + for (i = 0; i < 6; i++) + if (pz->pz_bc[i] >= 0) + printf("%d/", pz->pz_bc[i]); - printf("%s%d.%d", i? "." : "", pz->pz_mod, pz->pz_layers[0]); + printf("%d.%d", pz->pz_mod, pz->pz_layers[0]); for (i = 1; i < 6 && pz->pz_layers[i]; i++) printf(".%d", pz->pz_layers[i]); |