From patchwork Wed Nov 5 23:31:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Huawei Xie X-Patchwork-Id: 1150 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 4A48C7F98; Thu, 6 Nov 2014 00:22:53 +0100 (CET) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 6172B7F80 for ; Thu, 6 Nov 2014 00:22:49 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP; 05 Nov 2014 15:31:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.07,322,1413270000"; d="scan'208";a="603095704" Received: from shvmail01.sh.intel.com ([10.239.29.42]) by orsmga001.jf.intel.com with ESMTP; 05 Nov 2014 15:31:55 -0800 Received: from shecgisg003.sh.intel.com (shecgisg003.sh.intel.com [10.239.29.90]) by shvmail01.sh.intel.com with ESMTP id sA5NVrXt023502; Thu, 6 Nov 2014 07:31:53 +0800 Received: from shecgisg003.sh.intel.com (localhost [127.0.0.1]) by shecgisg003.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP id sA5NVoZx016353; Thu, 6 Nov 2014 07:31:52 +0800 Received: (from hxie5@localhost) by shecgisg003.sh.intel.com (8.13.6/8.13.6/Submit) id sA5NVoJu016349; Thu, 6 Nov 2014 07:31:50 +0800 From: Huawei Xie To: dev@dpdk.org Date: Thu, 6 Nov 2014 07:31:42 +0800 Message-Id: <1415230302-16310-2-git-send-email-huawei.xie@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1415230302-16310-1-git-send-email-huawei.xie@intel.com> References: <1415230302-16310-1-git-send-email-huawei.xie@intel.com> Subject: [dpdk-dev] [PATCH 2/2] lib/librte_vhost: printk->pr_debug X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" printk -> pr_debug Signed-off-by: Huawei Xie Acked-by: Neil Horman --- lib/librte_vhost/eventfd_link/eventfd_link.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/librte_vhost/eventfd_link/eventfd_link.c b/lib/librte_vhost/eventfd_link/eventfd_link.c index 542ec2c..7755dd6 100644 --- a/lib/librte_vhost/eventfd_link/eventfd_link.c +++ b/lib/librte_vhost/eventfd_link/eventfd_link.c @@ -88,13 +88,13 @@ eventfd_link_ioctl(struct file *f, unsigned int ioctl, unsigned long arg) task_target = pid_task(find_vpid(eventfd_copy.target_pid), PIDTYPE_PID); if (task_target == NULL) { - printk(KERN_DEBUG "Failed to get mem ctx for target pid\n"); + pr_debug("Failed to get mem ctx for target pid\n"); return -EFAULT; } files = get_files_struct(current); if (files == NULL) { - printk(KERN_DEBUG "Failed to get files struct\n"); + pr_debug("Failed to get files struct\n"); return -EFAULT; } @@ -109,7 +109,7 @@ eventfd_link_ioctl(struct file *f, unsigned int ioctl, unsigned long arg) put_files_struct(files); if (file == NULL) { - printk(KERN_DEBUG "Failed to get file from source pid\n"); + pr_debug("Failed to get file from source pid\n"); return 0; } @@ -128,7 +128,7 @@ eventfd_link_ioctl(struct file *f, unsigned int ioctl, unsigned long arg) files = get_files_struct(task_target); if (files == NULL) { - printk(KERN_DEBUG "Failed to get files struct\n"); + pr_debug("Failed to get files struct\n"); return -EFAULT; } @@ -143,7 +143,7 @@ eventfd_link_ioctl(struct file *f, unsigned int ioctl, unsigned long arg) put_files_struct(files); if (file == NULL) { - printk(KERN_DEBUG "Failed to get file from target pid\n"); + pr_debug("Failed to get file from target pid\n"); return 0; }