mmc: rtsx_pci: Enable MMC_CAP_ERASE to allow erase/discard/trim requests
[linux/fpc-iii.git] / drivers / usb / dwc3 / debug.c
blob0be6885bc37006364860e0aeb9e2b644cad72a8f
1 /**
2 * debug.c - DesignWare USB3 DRD Controller Debug/Trace Support
4 * Copyright (C) 2014 Texas Instruments Incorporated - http://www.ti.com
6 * Author: Felipe Balbi <balbi@ti.com>
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 of
10 * the License as published by the Free Software Foundation.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
18 #include "debug.h"
20 void dwc3_trace(void (*trace)(struct va_format *), const char *fmt, ...)
22 struct va_format vaf;
23 va_list args;
25 va_start(args, fmt);
26 vaf.fmt = fmt;
27 vaf.va = &args;
29 trace(&vaf);
31 va_end(args);