debug.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * Copyright 1998-2008 VIA Technologies, Inc. All Rights Reserved.
  3. * Copyright 2001-2008 S3 Graphics, Inc. All Rights Reserved.
  4. * This program is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU General Public
  6. * License as published by the Free Software Foundation;
  7. * either version 2, or (at your option) any later version.
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTIES OR REPRESENTATIONS; without even
  10. * the implied warranty of MERCHANTABILITY or FITNESS FOR
  11. * A PARTICULAR PURPOSE.See the GNU General Public License
  12. * for more details.
  13. * You should have received a copy of the GNU General Public License
  14. * along with this program; if not, write to the Free Software
  15. * Foundation, Inc.,
  16. * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  17. */
  18. #ifndef __DEBUG_H__
  19. #define __DEBUG_H__
  20. #ifndef VIAFB_DEBUG
  21. #define VIAFB_DEBUG 0
  22. #endif
  23. #if VIAFB_DEBUG
  24. #define DEBUG_MSG(f, a...) printk(f, ## a)
  25. #else
  26. #define DEBUG_MSG(f, a...)
  27. #endif
  28. #define VIAFB_WARN 0
  29. #if VIAFB_WARN
  30. #define WARN_MSG(f, a...) printk(f, ## a)
  31. #else
  32. #define WARN_MSG(f, a...)
  33. #endif
  34. #endif /* __DEBUG_H__ */