From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.tuxdriver.com (charlotte.tuxdriver.com [70.61.120.58]) by dpdk.org (Postfix) with ESMTP id A74C37EC4 for ; Thu, 6 Nov 2014 12:13:03 +0100 (CET) Received: from hmsreliant.think-freely.org ([2001:470:8:a08:7aac:c0ff:fec2:933b] helo=localhost) by smtp.tuxdriver.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1XmL8x-0000sz-Pq; Thu, 06 Nov 2014 06:22:29 -0500 Date: Thu, 6 Nov 2014 06:22:23 -0500 From: Neil Horman To: Huawei Xie Message-ID: <20141106112223.GB31902@hmsreliant.think-freely.org> References: <1415230302-16310-1-git-send-email-huawei.xie@intel.com> <1415230302-16310-2-git-send-email-huawei.xie@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1415230302-16310-2-git-send-email-huawei.xie@intel.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Score: -2.9 (--) X-Spam-Status: No Cc: dev@dpdk.org Subject: Re: [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: , X-List-Received-Date: Thu, 06 Nov 2014 11:13:04 -0000 On Thu, Nov 06, 2014 at 07:31:42AM +0800, Huawei Xie wrote: > printk -> pr_debug > > Signed-off-by: Huawei Xie > --- > 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; > } > > -- > 1.8.1.4 > > Acked-by: Neil Horman