Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
src: Use ostype from <sys/systm.h> instead of a literal "NetBSD"...
details: https://anonhg.NetBSD.org/src/rev/ffc6bc21a974
branches: trunk
changeset: 317967:ffc6bc21a974
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Mon Apr 09 15:26:29 2018 +0000
description:
Use ostype from <sys/systm.h> instead of a literal "NetBSD" for the
default root hub vendor string.
diffstat:
sys/dev/usb/usbroothub.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 48c94f9d8ca2 -r ffc6bc21a974 sys/dev/usb/usbroothub.c
--- a/sys/dev/usb/usbroothub.c Mon Apr 09 15:02:39 2018 +0000
+++ b/sys/dev/usb/usbroothub.c Mon Apr 09 15:26:29 2018 +0000
@@ -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 @@
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 */
Home |
Main Index |
Thread Index |
Old Index