Commit a832a1eb authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

hv: remove a bunch of unused debug macros from hyperv.h

These aren't used by anyone anymore, so remove them before someone tries
to use them again.

Cc: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent da0e9631
...@@ -721,11 +721,8 @@ extern void vmbus_ontimer(unsigned long data); ...@@ -721,11 +721,8 @@ extern void vmbus_ontimer(unsigned long data);
BLKVSC_DRV) BLKVSC_DRV)
/* Logging Level */ /* Logging Level */
#define ERROR_LVL 3
#define WARNING_LVL 4 #define WARNING_LVL 4
#define INFO_LVL 6 #define INFO_LVL 6
#define DEBUG_LVL 7
#define DEBUG_LVL_ENTEREXIT 8
#define DEBUG_RING_LVL 9 #define DEBUG_RING_LVL 9
extern unsigned int vmbus_loglevel; extern unsigned int vmbus_loglevel;
...@@ -736,33 +733,12 @@ extern unsigned int vmbus_loglevel; ...@@ -736,33 +733,12 @@ extern unsigned int vmbus_loglevel;
printk(KERN_DEBUG #mod": %s() " fmt "\n", __func__, ## args);\ printk(KERN_DEBUG #mod": %s() " fmt "\n", __func__, ## args);\
} while (0) } while (0)
#define DPRINT_DBG(mod, fmt, args...) do {\
if ((mod & (HIWORD(vmbus_loglevel))) && \
(DEBUG_LVL <= LOWORD(vmbus_loglevel))) \
printk(KERN_DEBUG #mod": %s() " fmt "\n", __func__, ## args);\
} while (0)
#define DPRINT_INFO(mod, fmt, args...) do {\
if ((mod & (HIWORD(vmbus_loglevel))) && \
(INFO_LVL <= LOWORD(vmbus_loglevel))) \
printk(KERN_INFO #mod": " fmt "\n", ## args);\
} while (0)
#define DPRINT_WARN(mod, fmt, args...) do {\ #define DPRINT_WARN(mod, fmt, args...) do {\
if ((mod & (HIWORD(vmbus_loglevel))) && \ if ((mod & (HIWORD(vmbus_loglevel))) && \
(WARNING_LVL <= LOWORD(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) } while (0)
#define DPRINT_ERR(mod, fmt, args...) do {\
if ((mod & (HIWORD(vmbus_loglevel))) && \
(ERROR_LVL <= LOWORD(vmbus_loglevel))) \
printk(KERN_ERR #mod": %s() ERROR!! " fmt "\n", \
__func__, ## args);\
} while (0)
struct hv_driver; struct hv_driver;
struct hv_device; struct hv_device;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment