musb_trace.c 876 B

123456789101112131415161718192021222324252627282930313233
  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. #define CREATE_TRACE_POINTS
  18. #include "musb_trace.h"
  19. void musb_dbg(struct musb *musb, const char *fmt, ...)
  20. {
  21. struct va_format vaf;
  22. va_list args;
  23. va_start(args, fmt);
  24. vaf.fmt = fmt;
  25. vaf.va = &args;
  26. trace_musb_log(musb, &vaf);
  27. va_end(args);
  28. }