Greg Kroah-Hartman | 5fd54ac | 2017-11-03 11:28:30 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 |
Bin Liu | f89252a | 2016-06-30 12:12:21 -0500 | [diff] [blame] | 2 | /* |
| 3 | * musb_trace.c - MUSB Controller Trace Support |
| 4 | * |
| 5 | * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com |
| 6 | * |
| 7 | * Author: Bin Liu <b-liu@ti.com> |
Bin Liu | f89252a | 2016-06-30 12:12:21 -0500 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | #define CREATE_TRACE_POINTS |
| 11 | #include "musb_trace.h" |
| 12 | |
| 13 | void musb_dbg(struct musb *musb, const char *fmt, ...) |
| 14 | { |
| 15 | struct va_format vaf; |
| 16 | va_list args; |
| 17 | |
| 18 | va_start(args, fmt); |
| 19 | vaf.fmt = fmt; |
| 20 | vaf.va = &args; |
| 21 | |
| 22 | trace_musb_log(musb, &vaf); |
| 23 | |
| 24 | va_end(args); |
| 25 | } |