Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268677
b: refs/heads/master
c: 8bf9053
h: refs/heads/master
i:
  268675: d03b0ec
v: v3
  • Loading branch information
David Kilroy authored and Greg Kroah-Hartman committed Oct 4, 2011
1 parent ec45826 commit b135055
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 29 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: 41598a0b718d31db6782a87ac5049ccfb56121db
refs/heads/master: 8bf90539d672090f725b6a5456f3898a602be193
61 changes: 34 additions & 27 deletions trunk/drivers/staging/wlags49_h2/debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,15 @@
#define _LEAVE_STR "<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<"


#define _DBG_ENTER(A) DBG_PRINT("%s:%.*s:%s\n", DBG_NAME(A), ++DBG_LEVEL(A), _ENTER_STR, __FUNC__)
#define _DBG_LEAVE(A) DBG_PRINT("%s:%.*s:%s\n", DBG_NAME(A), DBG_LEVEL(A)--, _LEAVE_STR, __FUNC__)
#define _DBG_ENTER(A) \
DBG_PRINT("%s:%.*s:%s\n", DBG_NAME(A), ++DBG_LEVEL(A), \
_ENTER_STR, __func__)
#define _DBG_LEAVE(A) \
DBG_PRINT("%s:%.*s:%s\n", DBG_NAME(A), DBG_LEVEL(A)--, \
_LEAVE_STR, __func__)


#define DBG_FUNC(F) static const char *__FUNC__ = F;
#define DBG_FUNC(F)

#define DBG_ENTER(A) {if (DBG_FLAGS(A) & DBG_TRACE_ON) \
_DBG_ENTER(A); }
Expand All @@ -145,29 +149,33 @@
DBG_PRINT(" %s -- "F"\n", N, S); }


#define DBG_ERROR(A, S...) {if (DBG_FLAGS(A) & DBG_ERROR_ON) {\
DBG_PRINT("%s:ERROR:%s ", DBG_NAME(A), __FUNC__);\
DBG_PRINTC(S); \
DBG_TRAP; \
} \
}
#define DBG_ERROR(A, S...) do { \
if (DBG_FLAGS(A) & DBG_ERROR_ON) { \
DBG_PRINT("%s:ERROR:%s ", DBG_NAME(A), __func__); \
DBG_PRINTC(S); \
DBG_TRAP; \
} } while (0)


#define DBG_WARNING(A, S...) {if (DBG_FLAGS(A) & DBG_WARNING_ON) {\
DBG_PRINT("%s:WARNING:%s ", DBG_NAME(A), __FUNC__);\
DBG_PRINTC(S); } }
#define DBG_WARNING(A, S...) do { \
if (DBG_FLAGS(A) & DBG_WARNING_ON) { \
DBG_PRINT("%s:WARNING:%s ", DBG_NAME(A), __func__); \
DBG_PRINTC(S); \
} } while (0)


#define DBG_NOTICE(A, S...) {if (DBG_FLAGS(A) & DBG_NOTICE_ON) {\
DBG_PRINT("%s:NOTICE:%s ", DBG_NAME(A), __FUNC__);\
DBG_PRINTC(S); \
} \
}
#define DBG_NOTICE(A, S...) do { \
if (DBG_FLAGS(A) & DBG_NOTICE_ON) { \
DBG_PRINT("%s:NOTICE:%s ", DBG_NAME(A), __func__); \
DBG_PRINTC(S); \
} } while (0)


#define DBG_TRACE(A, S...) do {if (DBG_FLAGS(A) & DBG_TRACE_ON) {\
DBG_PRINT("%s:%s ", DBG_NAME(A), __FUNC__);\
DBG_PRINTC(S); } } while (0)
#define DBG_TRACE(A, S...) do { \
if (DBG_FLAGS(A) & DBG_TRACE_ON) { \
DBG_PRINT("%s:%s ", DBG_NAME(A), __func__); \
DBG_PRINTC(S); \
} } while (0)


#define DBG_RX(A, S...) {if (DBG_FLAGS(A) & DBG_RX_ON) {\
Expand All @@ -181,13 +189,12 @@
DBG_PRINT(S); } }


#define DBG_ASSERT(C) { \
if (!(C)) {\
DBG_PRINT("ASSERT(%s) -- %s#%d (%s)\n", \
#C, __FILE__, __LINE__, __FUNC__); \
DBG_TRAP; \
} \
}
#define DBG_ASSERT(C) do { \
if (!(C)) { \
DBG_PRINT("ASSERT(%s) -- %s#%d (%s)\n", \
#C, __FILE__, __LINE__, __func__); \
DBG_TRAP; \
} } while (0)

typedef struct {
char *dbgName;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/staging/wlags49_h2/wl_netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ int wl_config( struct net_device *dev, struct ifmap *map )

/* The only thing we care about here is a port change. Since this not needed,
ignore the request. */
DBG_TRACE( DbgInfo, "%s: %s called.\n", dev->name, __FUNC__ );
DBG_TRACE(DbgInfo, "%s: %s called.\n", dev->name, __func__);

DBG_LEAVE( DbgInfo );
return 0;
Expand Down

0 comments on commit b135055

Please sign in to comment.