~ubuntu-branches/ubuntu/precise/linux-lowlatency/precise

« back to all changes in this revision

Viewing changes to drivers/scsi/osd/osd_debug.h

  • Committer: Package Import Robot
  • Author(s): Alessio Igor Bogani
  • Date: 2011-10-26 11:13:05 UTC
  • Revision ID: package-import@ubuntu.com-20111026111305-tz023xykf0i6eosh
Tags: upstream-3.2.0
ImportĀ upstreamĀ versionĀ 3.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
17
#define OSD_ERR(fmt, a...) printk(KERN_ERR "osd: " fmt, ##a)
 
18
#define OSD_INFO(fmt, a...) printk(KERN_NOTICE "osd: " fmt, ##a)
 
19
 
 
20
#ifdef CONFIG_SCSI_OSD_DEBUG
 
21
#define OSD_DEBUG(fmt, a...) \
 
22
        printk(KERN_NOTICE "osd @%s:%d: " fmt, __func__, __LINE__, ##a)
 
23
#else
 
24
#define OSD_DEBUG(fmt, a...) do {} while (0)
 
25
#endif
 
26
 
 
27
/* u64 has problems with printk this will cast it to unsigned long long */
 
28
#define _LLU(x) (unsigned long long)(x)
 
29
 
 
30
#endif /* ndef __OSD_DEBUG_H__ */