summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2008-01-17 22:53:19 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2008-01-17 22:53:19 +0000
commit412a833ae4b380203306f1e314d4ba5b120aebf0 (patch)
tree04588fdfa4ca53b9383211f55c4d652de2ac7936
parent5288fce5d05ba5a43ebebdcb43e743d69630929b (diff)
Print names we get from the prom within double quotes.
ok marco@
-rw-r--r--sys/arch/sparc64/dev/central.c4
-rw-r--r--sys/arch/sparc64/dev/fhc.c4
-rw-r--r--sys/arch/sparc64/dev/sbus.c4
-rw-r--r--sys/arch/sparc64/dev/upa.c4
4 files changed, 8 insertions, 8 deletions
diff --git a/sys/arch/sparc64/dev/central.c b/sys/arch/sparc64/dev/central.c
index dda9441a651..2562aa10d18 100644
--- a/sys/arch/sparc64/dev/central.c
+++ b/sys/arch/sparc64/dev/central.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: central.c,v 1.5 2007/09/17 01:33:33 krw Exp $ */
+/* $OpenBSD: central.c,v 1.6 2008/01/17 22:53:18 kettenis Exp $ */
/*
* Copyright (c) 2004 Jason L. Wright (jason@thought.net)
@@ -137,7 +137,7 @@ central_print(void *args, const char *busname)
char *class;
if (busname != NULL) {
- printf("%s at %s", ca->ca_name, busname);
+ printf("\"%s\" at %s", ca->ca_name, busname);
class = getpropstring(ca->ca_node, "device_type");
if (*class != '\0')
printf(" class %s", class);
diff --git a/sys/arch/sparc64/dev/fhc.c b/sys/arch/sparc64/dev/fhc.c
index 75c9822ccbb..384f19abf2c 100644
--- a/sys/arch/sparc64/dev/fhc.c
+++ b/sys/arch/sparc64/dev/fhc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fhc.c,v 1.14 2007/09/17 01:33:33 krw Exp $ */
+/* $OpenBSD: fhc.c,v 1.15 2008/01/17 22:53:18 kettenis Exp $ */
/*
* Copyright (c) 2004 Jason L. Wright (jason@thought.net)
@@ -136,7 +136,7 @@ fhc_print(void *args, const char *busname)
char *class;
if (busname != NULL) {
- printf("%s at %s", fa->fa_name, busname);
+ printf("\"%s\" at %s", fa->fa_name, busname);
class = getpropstring(fa->fa_node, "device_type");
if (*class != '\0')
printf(" class %s", class);
diff --git a/sys/arch/sparc64/dev/sbus.c b/sys/arch/sparc64/dev/sbus.c
index f75135d637c..560bf793770 100644
--- a/sys/arch/sparc64/dev/sbus.c
+++ b/sys/arch/sparc64/dev/sbus.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sbus.c,v 1.31 2008/01/03 21:37:25 kettenis Exp $ */
+/* $OpenBSD: sbus.c,v 1.32 2008/01/17 22:53:18 kettenis Exp $ */
/* $NetBSD: sbus.c,v 1.46 2001/10/07 20:30:41 eeh Exp $ */
/*-
@@ -217,7 +217,7 @@ sbus_print(void *args, const char *busname)
int i;
if (busname != NULL) {
- printf("%s at %s", sa->sa_name, busname);
+ printf("\"%s\" at %s", sa->sa_name, busname);
class = getpropstring(sa->sa_node, "device_type");
if (*class != '\0')
printf(" class %s", class);
diff --git a/sys/arch/sparc64/dev/upa.c b/sys/arch/sparc64/dev/upa.c
index de73c753629..dd07947b313 100644
--- a/sys/arch/sparc64/dev/upa.c
+++ b/sys/arch/sparc64/dev/upa.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: upa.c,v 1.7 2008/01/03 20:43:13 kettenis Exp $ */
+/* $OpenBSD: upa.c,v 1.8 2008/01/17 22:53:18 kettenis Exp $ */
/*
* Copyright (c) 2002 Jason L. Wright (jason@thought.net)
@@ -146,7 +146,7 @@ upa_print(void *args, const char *name)
struct mainbus_attach_args *ma = args;
if (name)
- printf("%s at %s", ma->ma_name, name);
+ printf("\"%s\" at %s", ma->ma_name, name);
return (UNCONF);
}