Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp367862imu; Fri, 7 Dec 2018 02:22:38 -0800 (PST) X-Google-Smtp-Source: AFSGD/UdZt0DhFRW+OhdC4expcSfgY1RuFzT/j3yE8WaChkZZH28cUkt2ult6vfyFtYXJYWK9SGC X-Received: by 2002:a65:514c:: with SMTP id g12mr1394876pgq.169.1544178158321; Fri, 07 Dec 2018 02:22:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544178158; cv=none; d=google.com; s=arc-20160816; b=n2RCPglJ8cIe28dSjChtfkLZyHSmGA3cHth+7lFbwLuRniIUI8cRbFiIQglfHD5r9C oGiph3VEM7EXSy0eAVVlfn6p2ONhPrEuICWsGiHUyaRQWMGpEIyV1Pzh0kZaQp/wd/JT 0vDW/k4TMqXOeqiE+vpqoB1gTtVWn6UlLVE0JWCp85evxGaCO1gHeGfD/AdrPUI2AGhT ieXd15IPsQmI6biK+e/zK1ZxvHZ927/j5CjLzLmXptEcZYoEShX/6Wdt13WXBmghWBGV GEatKR+67z0/N/h1uJ+uhyJYaZndbh3RheIkMYrKVw/8CkFjcUqNb5TdvHJH92RgcAW3 bvBA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=9CEoDCK9uvYi1mDJnsc77baMLzVJKXRnuN8Z4r2UU20=; b=UU0Tdfr+lIr2YCxQCic2dEMUhScT5gDrfnAl2wtrKA/xlgJNEF1KVrEdigpGv8qzA0 Ae27VV1sZhAwdeyOXpdob/HSaY2iA33iYSRrycpv49h6Y87Zs7dhMt2UsaLYmekx3dSZ kTO6ENGOIweYYH1oMy6q5Roe3r6xBUbQwD7zc7oBPJlc6KeAgfa56GMAJOT8Bj0KwqI1 5CAIITuPpckMaqCGKyQQcvOR1N6NMsa9Mm/CFin8Eb89iauwYJXWttd7cJ83jLodK7mY h01yR0qxSg4hp2rQh7s39+aOLiVY5lXFFmcUizEbIfg68L3ypEaPUN7IyNJCGE54QYx7 uX0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="BZEK/WcR"; 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 o27si2408586pgl.53.2018.12.07.02.22.23; Fri, 07 Dec 2018 02:22:38 -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="BZEK/WcR"; 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 S1726041AbeLGKVh (ORCPT + 99 others); Fri, 7 Dec 2018 05:21:37 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:44384 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725989AbeLGKVg (ORCPT ); Fri, 7 Dec 2018 05:21:36 -0500 Received: by mail-pg1-f194.google.com with SMTP id t13so1525591pgr.11 for ; Fri, 07 Dec 2018 02:21:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=9CEoDCK9uvYi1mDJnsc77baMLzVJKXRnuN8Z4r2UU20=; b=BZEK/WcR3D+eC3AmJjwfYTzfIp3I6pG9Xy/xFo1Tda5XP/k34o+h4qmDHGX7RDgirb IHp2vcPlFLFB3G/7qfZbprj52OoqjMZ3mh33N7tZcMNu5bXUlHUGJuMc6Xn05C3esSoz CS3Hgq1rUSA30PXqEG5DqkXqBoJKUz9cGbwU7pBIIkOTBdaL/RZ/IcvVItldvTTK2tBg NwPJCGG3gTRT0DYH/hPpdRFATOR3lt1ETss44WUONdTEiLFWaZ5/g/kKTrg8IkMfI4OJ 6C9H6b9O8AtZTivaczAOmVAZ4z9BhrGvARSdNbi06TuIFtUIVPYaFkB/YiG0++t0IjO4 O0qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=9CEoDCK9uvYi1mDJnsc77baMLzVJKXRnuN8Z4r2UU20=; b=c6fo3t/32MuT7EcxapWW3QO/cmgN1L4/exuR0zzETDCzWRRMl6i0lNZxe6dZiUVfJ0 d+Y7xPH11NTI9YRKYJHptu6I9IqvtVH5OYVw7HE+ycs4BuuGVCkjK6s9YhJQGuKOX/Sr mZbPsBhR5tXs5TVnxseV0ABAjrZ5pJXfzmUMOnJ1m5TWifXxPskuUVZCYPfJg4scGQ7W YgEGBoUduy0gTAKIF20MNgn2BwuqgeEh3HvpZEaCOzypdU8QUx/4PpqJFou1Twnjljg/ 7N7tp4SW5x4aIznTIXEWYffQRmjl5PGl/qn8MYjd8ljaahz/wpaqd7oJ7O8GY7MPn9Rj No8g== X-Gm-Message-State: AA+aEWaMyBI/Roj+vrrq5RIvKTlCcyFRr15Nx22byDjrq7TvWC1D3s/9 Lfr/qXOtPBE/QroBYJBJfdY= X-Received: by 2002:a63:6cc8:: with SMTP id h191mr1368093pgc.366.1544178096295; Fri, 07 Dec 2018 02:21:36 -0800 (PST) Received: from localhost.localdomain ([191.101.9.198]) by smtp.gmail.com with ESMTPSA id w88sm7363186pfk.11.2018.12.07.02.21.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Dec 2018 02:21:35 -0800 (PST) From: Bo YU To: gregkh@linuxfoundation.org, rafael@kernel.org Cc: Bo YU , linux-kernel@vger.kernel.org, joe@perches.com, yuzibode@126.com Subject: [PATCH v3 1/2] kobject: use pr_warn to replace printk Date: Fri, 7 Dec 2018 05:21:28 -0500 Message-Id: <662efd36ef9a3394f0c4ea64d3bb3715b7390458.1544175417.git.tsu.yubo@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is a fix to replace printk with pr_warn 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 63d0816ab23b..b7c088c902a2 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