Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb fix formatting and db_usb_command_table[] static...
details: https://anonhg.NetBSD.org/src/rev/28b082361464
branches: trunk
changeset: 959709:28b082361464
user: mrg <mrg%NetBSD.org@localhost>
date: Mon Feb 22 20:45:28 2021 +0000
description:
fix formatting and db_usb_command_table[] static. idea from rillig@.
diffstat:
sys/dev/usb/usb.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (45 lines):
diff -r db5d1b649482 -r 28b082361464 sys/dev/usb/usb.c
--- a/sys/dev/usb/usb.c Mon Feb 22 20:38:55 2021 +0000
+++ b/sys/dev/usb/usb.c Mon Feb 22 20:45:28 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: usb.c,v 1.189 2021/02/21 23:06:39 mrg Exp $ */
+/* $NetBSD: usb.c,v 1.190 2021/02/22 20:45:28 mrg Exp $ */
/*
* Copyright (c) 1998, 2002, 2008, 2012 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usb.c,v 1.189 2021/02/21 23:06:39 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usb.c,v 1.190 2021/02/22 20:45:28 mrg Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -341,7 +341,7 @@
{
struct usbd_xfer *xfer = (struct usbd_xfer *)addr;
- if (!have_addr){
+ if (!have_addr) {
db_printf("%s: need usbd_xfer address\n", __func__);
return;
}
@@ -363,7 +363,7 @@
struct usbd_pipe *pipe = (struct usbd_pipe *)addr;
struct usbd_xfer *xfer;
- if (!have_addr){
+ if (!have_addr) {
db_printf("%s: need usbd_pipe address\n", __func__);
return;
}
@@ -374,7 +374,7 @@
}
}
-const struct db_command db_usb_command_table[] = {
+static const struct db_command db_usb_command_table[] = {
{ DDB_ADD_CMD("usbxfer", db_usb_xfer, 0,
"display a USB xfer structure",
NULL, NULL) },
Home |
Main Index |
Thread Index |
Old Index