Skip to content

Commit

Permalink
Staging: hv: fix up some coding style issues in logging.h
Browse files Browse the repository at this point in the history
It's now clean.

Well, from a coding style guide, not from a logic standpoint, the whole
file needs to be tossed overboard and cheered on as the sharks tear it
to individual bits.

Cc: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Greg Kroah-Hartman committed Sep 15, 2009
1 parent 8225021 commit 0b8ffe0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/staging/hv/include/logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@
extern unsigned int vmbus_loglevel;

#define ASSERT(expr) \
if (!(expr)) { \
if (!(expr)) { \
printk(KERN_CRIT "Assertion failed! %s,%s,%s,line=%d\n", \
#expr, __FILE__, __func__, __LINE__); \
__asm__ __volatile__("int3"); \
}
}

#define DPRINT(mod, lvl, fmt, args...) do {\
if ((mod & (HIWORD(vmbus_loglevel))) && \
Expand All @@ -89,7 +89,7 @@ extern unsigned int vmbus_loglevel;
#define DPRINT_WARN(mod, fmt, args...) do {\
if ((mod & (HIWORD(vmbus_loglevel))) && \
(WARNING_LVL <= LOWORD(vmbus_loglevel))) \
printk(KERN_WARNING #mod": WARNING! " fmt "\n", ## args);\
printk(KERN_WARNING #mod": WARNING! " fmt "\n", ## args);\
} while (0)

#define DPRINT_ERR(mod, fmt, args...) do {\
Expand All @@ -103,7 +103,7 @@ extern unsigned int vmbus_loglevel;
#define DPRINT_ENTER(mod) do {\
if ((mod & (HIWORD(vmbus_loglevel))) && \
(DEBUG_LVL_ENTEREXIT <= LOWORD(vmbus_loglevel))) \
printk(KERN_DEBUG "["#mod"]: %s() enter\n", __func__);\
printk(KERN_DEBUG "["#mod"]: %s() enter\n", __func__);\
} while (0)

#define DPRINT_EXIT(mod) do {\
Expand Down

0 comments on commit 0b8ffe0

Please sign in to comment.