odm_debug.c 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
  4. *
  5. * This program is free software; you can redistribute it and/or modify it
  6. * under the terms of version 2 of the GNU General Public License as
  7. * published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  12. * more details.
  13. *
  14. ******************************************************************************/
  15. #include "odm_precomp.h"
  16. void ODM_InitDebugSetting23a(struct dm_odm_t *pDM_Odm)
  17. {
  18. pDM_Odm->DebugLevel = ODM_DBG_TRACE;
  19. pDM_Odm->DebugComponents = 0;
  20. }
  21. u32 GlobalDebugLevel23A;
  22. void rt_trace(int comp, int level, const char *fmt, ...)
  23. {
  24. struct va_format vaf;
  25. va_list args;
  26. va_start(args, fmt);
  27. vaf.fmt = fmt;
  28. vaf.va = &args;
  29. pr_info(DRIVER_PREFIX " [0x%08x,%d] %pV", comp, level, &vaf);
  30. va_end(args);
  31. }