Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 360279
b: refs/heads/master
c: 3993de6
h: refs/heads/master
i:
  360277: e268faf
  360275: 8bf2731
  360271: 2ecc087
v: v3
  • Loading branch information
Robert Love committed Dec 14, 2012
1 parent a71ab34 commit 3b72590
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ef60f674344cdb6d1da199f6b8d7d7016813cc6f
refs/heads/master: 3993de6183885a099163b9562a2ea9c07b994a0e
7 changes: 7 additions & 0 deletions trunk/drivers/scsi/fcoe/fcoe_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@

#include <scsi/fcoe_sysfs.h>

/*
* OK to include local libfcoe.h for debug_logging, but cannot include
* <scsi/libfcoe.h> otherwise non-netdev based fcoe solutions would have
* have to include more than fcoe_sysfs.h.
*/
#include "libfcoe.h"

static atomic_t ctlr_num;
static atomic_t fcf_num;

Expand Down
11 changes: 8 additions & 3 deletions trunk/drivers/scsi/fcoe/libfcoe.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
#define _FCOE_LIBFCOE_H_

extern unsigned int libfcoe_debug_logging;
#define LIBFCOE_LOGGING 0x01 /* General logging, not categorized */
#define LIBFCOE_FIP_LOGGING 0x02 /* FIP logging */
#define LIBFCOE_TRANSPORT_LOGGING 0x04 /* FCoE transport logging */
#define LIBFCOE_LOGGING 0x01 /* General logging, not categorized */
#define LIBFCOE_FIP_LOGGING 0x02 /* FIP logging */
#define LIBFCOE_TRANSPORT_LOGGING 0x04 /* FCoE transport logging */
#define LIBFCOE_SYSFS_LOGGING 0x08 /* fcoe_sysfs logging */

#define LIBFCOE_CHECK_LOGGING(LEVEL, CMD) \
do { \
Expand All @@ -28,4 +29,8 @@ do { \
printk(KERN_INFO "%s: " fmt, \
__func__, ##args);)

#define LIBFCOE_SYSFS_DBG(cdev, fmt, args...) \
LIBFCOE_CHECK_LOGGING(LIBFCOE_SYSFS_LOGGING, \
pr_info("ctlr_%d: " fmt, cdev->id, ##args);)

#endif /* _FCOE_LIBFCOE_H_ */

0 comments on commit 3b72590

Please sign in to comment.