musb_trace.c 457 B

1234567891011121314151617181920212223242526
  1. // SPDX-License-Identifier: GPL-2.0
  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>
  8. */
  9. #define CREATE_TRACE_POINTS
  10. #include "musb_trace.h"
  11. void musb_dbg(struct musb *musb, const char *fmt, ...)
  12. {
  13. struct va_format vaf;
  14. va_list args;
  15. va_start(args, fmt);
  16. vaf.fmt = fmt;
  17. vaf.va = &args;
  18. trace_musb_log(musb, &vaf);
  19. va_end(args);
  20. }