Bin Liu | f89252a | 2016-06-30 12:12:21 -0500 | [diff] [blame^] | 1 | /* |
| 2 | * musb_trace.c - MUSB Controller Trace Support |
| 3 | * |
| 4 | * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com |
| 5 | * |
| 6 | * Author: Bin Liu <b-liu@ti.com> |
| 7 | * |
| 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. |
| 11 | * |
| 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. |
| 16 | */ |
| 17 | |
| 18 | #define CREATE_TRACE_POINTS |
| 19 | #include "musb_trace.h" |
| 20 | |
| 21 | void musb_dbg(struct musb *musb, const char *fmt, ...) |
| 22 | { |
| 23 | struct va_format vaf; |
| 24 | va_list args; |
| 25 | |
| 26 | va_start(args, fmt); |
| 27 | vaf.fmt = fmt; |
| 28 | vaf.va = &args; |
| 29 | |
| 30 | trace_musb_log(musb, &vaf); |
| 31 | |
| 32 | va_end(args); |
| 33 | } |