summaryrefslogtreecommitdiffstats
path: root/drivers/staging/hv/channel.c
diff options
context:
space:
mode:
authorHank Janssen <hjanssen@microsoft.com>2011-03-29 13:58:47 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2011-04-04 22:03:07 -0700
commit0a46618d58c90f93e8b8e9a18062d1691b70297e (patch)
tree4b12c2c36b4db6da668a2751ade5031d161ede22 /drivers/staging/hv/channel.c
parent8de61e31466a87cf77231db52ff9c94ddb1f758b (diff)
downloadlinux-stable-0a46618d58c90f93e8b8e9a18062d1691b70297e.tar.gz
linux-stable-0a46618d58c90f93e8b8e9a18062d1691b70297e.tar.bz2
linux-stable-0a46618d58c90f93e8b8e9a18062d1691b70297e.zip
staging: hv: Replace DPRINT with natives in hv_vmbus
Replace all remaining DPRINT calls (excluding the ringbuffer debug which is going to be done in a next set of patches) with their native pr_ calls. And also changed some of the printouts to be more useful. Signed-off-by: Hank Janssen <hjanssen@microsoft.com> Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com> Signed-off-by: K. Y. Srinivasan <kys@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/channel.c')
-rw-r--r--drivers/staging/hv/channel.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/staging/hv/channel.c b/drivers/staging/hv/channel.c
index c90dbaf0c473..580ce6955ea1 100644
--- a/drivers/staging/hv/channel.c
+++ b/drivers/staging/hv/channel.c
@@ -18,6 +18,8 @@
* Haiyang Zhang <haiyangz@microsoft.com>
* Hank Janssen <hjanssen@microsoft.com>
*/
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/wait.h>
@@ -898,7 +900,7 @@ int vmbus_recvpacket(struct vmbus_channel *channel, void *buffer,
if (userlen > bufferlen) {
spin_unlock_irqrestore(&channel->inbound_lock, flags);
- DPRINT_ERR(VMBUS, "buffer too small - got %d needs %d",
+ pr_err("Buffer too small - got %d needs %d\n",
bufferlen, userlen);
return -1;
}
@@ -950,8 +952,9 @@ int vmbus_recvpacket_raw(struct vmbus_channel *channel, void *buffer,
if (packetlen > bufferlen) {
spin_unlock_irqrestore(&channel->inbound_lock, flags);
- DPRINT_ERR(VMBUS, "buffer too small - needed %d bytes but "
- "got space for only %d bytes", packetlen, bufferlen);
+ pr_err("Buffer too small - needed %d bytes but "
+ "got space for only %d bytes\n",
+ packetlen, bufferlen);
return -2;
}