PageRenderTime 10ms CodeModel.GetById 7ms RepoModel.GetById 1ms app.codeStats 0ms

/drivers/scsi/osd/osd_debug.h

https://bitbucket.org/abioy/linux
C Header | 30 lines | 12 code | 4 blank | 14 comment | 1 complexity | e4da7cac5e053662bd39e3040340bc0b MD5 | raw file
Possible License(s): CC-BY-SA-3.0, GPL-2.0, LGPL-2.0, AGPL-1.0
  1. /*
  2. * osd_debug.h - Some kprintf macros
  3. *
  4. * Copyright (C) 2008 Panasas Inc. All rights reserved.
  5. *
  6. * Authors:
  7. * Boaz Harrosh <bharrosh@panasas.com>
  8. * Benny Halevy <bhalevy@panasas.com>
  9. *
  10. * This program is free software; you can redistribute it and/or modify
  11. * it under the terms of the GNU General Public License version 2
  12. *
  13. */
  14. #ifndef __OSD_DEBUG_H__
  15. #define __OSD_DEBUG_H__
  16. #define OSD_ERR(fmt, a...) printk(KERN_ERR "osd: " fmt, ##a)
  17. #define OSD_INFO(fmt, a...) printk(KERN_NOTICE "osd: " fmt, ##a)
  18. #ifdef CONFIG_SCSI_OSD_DEBUG
  19. #define OSD_DEBUG(fmt, a...) \
  20. printk(KERN_NOTICE "osd @%s:%d: " fmt, __func__, __LINE__, ##a)
  21. #else
  22. #define OSD_DEBUG(fmt, a...) do {} while (0)
  23. #endif
  24. /* u64 has problems with printk this will cast it to unsigned long long */
  25. #define _LLU(x) (unsigned long long)(x)
  26. #endif /* ndef __OSD_DEBUG_H__ */