]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/staging/hv/hv_kvp.c
Staging: hv: vmbus_drv: Include the contents of hv_api.h in hyperv_vmbus.h
[mirror_ubuntu-artful-kernel.git] / drivers / staging / hv / hv_kvp.c
index faf692e4126e93ca54fd9c384dea964e21800d6b..35342cbf4288b39c506467c3bb55a605d3a23b08 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  *
  */
-
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
 #include <linux/net.h>
 #include <linux/nls.h>
 #include <linux/connector.h>
 #include <linux/workqueue.h>
 
-#include "logging.h"
-#include "hv_api.h"
-#include "vmbus.h"
-#include "vmbus_packet_format.h"
-#include "vmbus_channel_interface.h"
-#include "version_info.h"
-#include "channel.h"
+#include "hyperv.h"
 #include "vmbus_private.h"
-#include "vmbus_api.h"
-#include "utils.h"
 #include "hv_kvp.h"
 
 
@@ -114,7 +106,7 @@ kvp_cn_callback(struct cn_msg *msg, struct netlink_skb_parms *nsp)
 
        message = (struct hv_ku_msg *)msg->data;
        if (msg->seq == KVP_REGISTER) {
-               printk(KERN_INFO "KVP: user-mode registering done.\n");
+               pr_info("KVP: user-mode registering done.\n");
                kvp_register();
        }
 
@@ -174,7 +166,7 @@ kvp_respond_to_host(char *key, char *value, int error)
                /*
                 * This is a spurious call!
                 */
-               printk(KERN_WARNING "KVP: Transaction not active\n");
+               pr_warn("KVP: Transaction not active\n");
                return;
        }
        /*
@@ -259,9 +251,6 @@ void hv_kvp_onchannelcallback(void *context)
        vmbus_recvpacket(channel, recv_buffer, PAGE_SIZE, &recvlen, &requestid);
 
        if (recvlen > 0) {
-               DPRINT_DBG(VMBUS, "KVP packet: len=%d, requestid=%lld",
-                          recvlen, requestid);
-
                icmsghdrp = (struct icmsg_hdr *)&recv_buffer[
                        sizeof(struct vmbuspipe_hdr)];