Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4700297imu; Tue, 8 Jan 2019 04:56:41 -0800 (PST) X-Google-Smtp-Source: ALg8bN6jr6jgLM+X9RoRrbBa5tvU0c14qiukoHLkOV8XRmwx6wwPy2nTzECexVSovAu0jMRD/08Y X-Received: by 2002:a17:902:2b8a:: with SMTP id l10mr1593020plb.70.1546952200994; Tue, 08 Jan 2019 04:56:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546952200; cv=none; d=google.com; s=arc-20160816; b=al/BlYeVTP1DP5iFzb+frrhvEi5W3y+dzew/P0KUfhnmI+OANzyvNGzR9hN53dE+t4 yx29SfXcjoT5uirLHAkoQH+g4srcWfR8m8cnWSl9hSlDPzzAjWlOxcR5M14YZADuJb/K sIs+ZZJEoKty8/+pzj8d8RL2AWgb5GAgzhR1jcTBFkchUqDAbjeJEGRg3CknHSVm+Eub nrM7C7ZxgQ0dLPgEpn7jgzkcql1MSL5gcjzvf8lCExqIyuwjdyQ7Te8Z67Viddlh4mQ8 tcl7b7104eFAyiT09KgA6ZbnA13QIErGM6C96EP2+sS+oePMrB97HtV9AbfqU3dWq1/h dQig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=ppW4chTqXj2TTlfsBrWJm50OYmgOQxIkY03mYwfkNZc=; b=jbvlxds/gj/LDAmpbq3Jozn1gUd21mWVRQgWUgYYOn2h2/9WCceNwbfqs61p0FBopH 9/YAia8r9HvtXJcwzpt6jiI6EUdxMoZErB3iIrFzVo94M/9aUL3hkmsrejXkG7eRdJtP 5MmroiuKxVttLNBFQwl3KGs1TWK2HDS/qs7MtbjOWuN+Xd2egNCsxflK50whZn9ARgG5 L02DbiCjJYt0dNA/n8vhgBIgMTuZqY/Aq2K4YcBnsjS1GrsO34sORykS1lgczEAZhWSy sQEcLJX+CD/aNFfSyS0XHSSrK7rJYDEKIiRTMkyHGZV9nKYnEKEc+RUCzWfyCVyaJogS iQ3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OJiGJT09; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v61si16602573plb.54.2019.01.08.04.56.25; Tue, 08 Jan 2019 04:56:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OJiGJT09; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727870AbfAHMyC (ORCPT + 99 others); Tue, 8 Jan 2019 07:54:02 -0500 Received: from mail-ed1-f65.google.com ([209.85.208.65]:41324 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727484AbfAHMyB (ORCPT ); Tue, 8 Jan 2019 07:54:01 -0500 Received: by mail-ed1-f65.google.com with SMTP id a20so4091037edc.8 for ; Tue, 08 Jan 2019 04:54:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-disposition:in-reply-to:user-agent; bh=ppW4chTqXj2TTlfsBrWJm50OYmgOQxIkY03mYwfkNZc=; b=OJiGJT09l3/wm2QMUc8fC0VRNOL4hcxk2HiXfGCnn7Nj7eb0slUp3evdkKFCBsdTOj TngC97b3Ppa2d75iIvcZzwz7a4bUfKqJ/5CncVyGGvaOwD7ECleDWpTN5W4pe3Uhi6T1 iFD9zGclGj625JAZUDSjCZWgdn4TiJOVetcTxn9ywL+mKnk9syx+GLKpAutWCvhKoyQg dFM3NR0+tmSJQ2YAMcZAqe6+rnKYBkThBFREDjuCG/PxMdHDg+zJInUbXZHnjzHdLl/D eXFbW8XRteSpe9PNUQvXZOtKKMmoWblR2Ws0QgQEFoftcgwRa6mrr+utu7kOXSqfyDs8 SOpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:references:mime-version:content-disposition :in-reply-to:user-agent; bh=ppW4chTqXj2TTlfsBrWJm50OYmgOQxIkY03mYwfkNZc=; b=XBEFxwUq6eZBOwj4rrriLhgM5gYs+aCKR9bKRKwC/iAf4/ZN719K+3bw3yaTWK+ugA dq930ewUdWoGmpOnb0MZQIGZQOgMJWOARqg3t0jDlaIj/5UaGvaiQ41+UYr1vosmnKWh nLr7qxxN1va+Fv3O8qw/TEajeumfTm5RMIHnuuPF5JPYZDLaGc4+gv/eAkMdELEAW4ul DkFsfGJT2hobBP3c7ZRq0f1bGvbtur4lnMEq84a+vaZelVSkilqfpkqVa7VBaWCq4o8Q qyk3X3y/ppS+qkk7oUL/XwhrYQkxjnuAk7ZsSZ7ydAPThXxLlfMfgBbklDORKTSnsly+ 9mOA== X-Gm-Message-State: AJcUukcUkB61zsObKEoKtzRnmhpF4hiDOTYNjJuYuRBPIXrpGBlumIoN 2mlW6t+4sCdSpedGiyeKWRs= X-Received: by 2002:a50:ab82:: with SMTP id u2mr2022781edc.111.1546952039894; Tue, 08 Jan 2019 04:53:59 -0800 (PST) Received: from yubo-2 ([191.101.9.198]) by smtp.gmail.com with ESMTPSA id r42sm32658228edd.23.2019.01.08.04.53.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 08 Jan 2019 04:53:59 -0800 (PST) Date: Tue, 8 Jan 2019 07:53:56 -0500 From: YU Bo To: "Rafael J. Wysocki" Cc: Greg Kroah-Hartman , Linux Kernel Mailing List , Joe Perches , yuzibode@126.com Subject: Re: [PATCH v4 1/2] kobject: use pr_warn to replace printk Message-ID: <20190108125355.yc7ryyl34s2me4z7@yubo-2> Mail-Followup-To: "Rafael J. Wysocki" , Greg Kroah-Hartman , Linux Kernel Mailing List , Joe Perches , yuzibode@126.com References: <8c73ad4b2b29bda53f2dfb6624b8b7984b52e307.1546915794.git.tsu.yubo@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180512-62-03f98a Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Tue, Jan 08, 2019 at 10:39:57AM +0100, Rafael J. Wysocki wrote: >On Tue, Jan 8, 2019 at 4:11 AM Bo YU wrote: >> >> This is a fix to replace printk with pr_warn > >You call it a "fix", but what exactly is wrong with the code as is? Is there any differentions between pr_* and printk? If they were the same with functionial, i think it would be better to use pr_* to replace printk.There are two lines code with printk only and others are pr_* in kobject_uevent.c. In fact,as you know, the code is fine.I just want to keep consistency with looks like Thanks > >> Signed-off-by: Bo YU >> --- >> lib/kobject_uevent.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/lib/kobject_uevent.c b/lib/kobject_uevent.c >> index 27c6118afd1c..499dfcdafcb0 100644 >> --- a/lib/kobject_uevent.c >> +++ b/lib/kobject_uevent.c >> @@ -224,7 +224,7 @@ int kobject_synth_uevent(struct kobject *kobj, const char *buf, size_t count) >> out: >> if (r) { >> devpath = kobject_get_path(kobj, GFP_KERNEL); >> - printk(KERN_WARNING "synth uevent: %s: %s", >> + pr_warn("synth uevent: %s: %s", >> devpath ?: "unknown device", >> msg ?: "failed to send uevent"); >> kfree(devpath); >> -- >> 2.11.0 >>