summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorjakllsch <jakllsch@NetBSD.org>2018-04-09 15:26:29 +0000
committerjakllsch <jakllsch@NetBSD.org>2018-04-09 15:26:29 +0000
commitbe7c3ea5ea4e1b8755f7cb643d44a1407f135068 (patch)
tree507c94932e1d5f510b76cf3dc04d547e1295b437 /sys/dev
parent907d91e812f5bdd3d549b657cab6f7ce838006e8 (diff)
Use ostype from <sys/systm.h> instead of a literal "NetBSD" for the
default root hub vendor string.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/usbroothub.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/usb/usbroothub.c b/sys/dev/usb/usbroothub.c
index d7083c62c04..bd2fdab6d54 100644
--- a/sys/dev/usb/usbroothub.c
+++ b/sys/dev/usb/usbroothub.c
@@ -1,4 +1,4 @@
-/* $NetBSD: usbroothub.c,v 1.4 2017/11/28 07:36:08 skrll Exp $ */
+/* $NetBSD: usbroothub.c,v 1.5 2018/04/09 15:26:29 jakllsch Exp $ */
/*-
* Copyright (c) 1998, 2004, 2011, 2012 The NetBSD Foundation, Inc.
@@ -62,6 +62,7 @@
#include <dev/usb/usbdivar.h>
#include <dev/usb/usbroothub.h>
#include <dev/usb/usbhist.h>
+#include <sys/systm.h> /* for ostype */
extern int usbdebug;
@@ -468,7 +469,7 @@ roothub_ctrl_start(struct usbd_xfer *xfer)
break;
case C(1, UDESC_STRING):
/* Vendor */
- buflen = usb_makestrdesc(sd, len, "NetBSD");
+ buflen = usb_makestrdesc(sd, len, ostype);
break;
case C(2, UDESC_STRING):
/* Product */