DPDK patches and discussions
 help / color / mirror / Atom feed
From: Neil Horman <nhorman@tuxdriver.com>
To: Huawei Xie <huawei.xie@intel.com>
Cc: dev@dpdk.org
Subject: Re: [dpdk-dev] [PATCH 2/2] lib/librte_vhost: printk->pr_debug
Date: Thu, 6 Nov 2014 06:22:23 -0500	[thread overview]
Message-ID: <20141106112223.GB31902@hmsreliant.think-freely.org> (raw)
In-Reply-To: <1415230302-16310-2-git-send-email-huawei.xie@intel.com>

On Thu, Nov 06, 2014 at 07:31:42AM +0800, Huawei Xie wrote:
> printk -> pr_debug
> 
> Signed-off-by: Huawei Xie <huawei.xie@intel.com>
> ---
>  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 <nhorman@tuxdriver.com>

  reply	other threads:[~2014-11-06 11:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-05 23:31 [dpdk-dev] [PATCH 1/2] lib/librte_vhost: code style fixes Huawei Xie
2014-11-05 23:31 ` [dpdk-dev] [PATCH 2/2] lib/librte_vhost: printk->pr_debug Huawei Xie
2014-11-06 11:22   ` Neil Horman [this message]
2014-11-06 11:18 ` [dpdk-dev] [PATCH 1/2] lib/librte_vhost: code style fixes Neil Horman
2014-11-06 22:13   ` Thomas Monjalon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141106112223.GB31902@hmsreliant.think-freely.org \
    --to=nhorman@tuxdriver.com \
    --cc=dev@dpdk.org \
    --cc=huawei.xie@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).