Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp504277imu; Wed, 9 Jan 2019 01:20:11 -0800 (PST) X-Google-Smtp-Source: ALg8bN451nobTxo3TofiD6EauvYWElMiHJXW1pHf+UyYrP+wccweCE333QXFmK4/S/X5+c7zTkTg X-Received: by 2002:a65:5387:: with SMTP id x7mr4722429pgq.412.1547025611294; Wed, 09 Jan 2019 01:20:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547025611; cv=none; d=google.com; s=arc-20160816; b=dyji6eqnudOrNzTZq64aVnuyQRvDxpI7DAlUB1wI/5+h8OJOsOeAXqXgRZPkriLKHm tJIJXb1GxwGd7gxjf9raVWclQHsbV7w6n30PMgTuE1LQ1FH6dzYxMqiY3KsyryEnXfFm J1e0FXR2aVICFxYnuPtAWbwQ6mSe+FS8zPkrMajZgRZiKGgwVBA7K7M02UTPoGH7dvub kvhBNFGok1jrgKvVZLIHfMDRbBK5O6FUGEls4tJz5gCKmffV4cRyojUJuFNBzE+EFoTI uGwySVPlZqVRERZ2OgH39XLrcZMXGEPG54Npdl9iaJIOYHV/3v8MY0MPoHApehnittIL hIFA== 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=QT0+8EtvT8XyIkLazk8pXkyPSXlhPOgzMJ6VTGqFFn4=; b=APbmhwhKWYxmumq95JMuBZGNBdv50Z/mJaFM7DJldIv9HTgAWBNraNusScTTkeFV+m ffK99aYYDVxI9syvuJ6TpkpWrBduADAFmMitobwxvjXCNsb8wRlkT0OuoQfGuaK7eWcr 5ebqVQiruk7xmB1iLRxxAjN90nwPGa15UY+gsHV5MpkJoK7cuapjar4Go2fl8KJJZ5XX LuFkt0euEgue0xycktx6e6ODk/GovWsRPSIrXLqhvvh0C21HLKC/4TBKssSZWNvnenNE fRnn6AkoOAYq7Xz6JurecP35rfC47o5pL/fRZhnVxGFK33afbllSfAu+RJp6k79yAr0K Y73g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LEZndf3r; 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 a1si7969161pgk.495.2019.01.09.01.19.55; Wed, 09 Jan 2019 01:20:11 -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=LEZndf3r; 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 S1730207AbfAIJRQ (ORCPT + 99 others); Wed, 9 Jan 2019 04:17:16 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:46169 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729843AbfAIJRP (ORCPT ); Wed, 9 Jan 2019 04:17:15 -0500 Received: by mail-ed1-f66.google.com with SMTP id o10so6645389edt.13 for ; Wed, 09 Jan 2019 01:17:14 -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=QT0+8EtvT8XyIkLazk8pXkyPSXlhPOgzMJ6VTGqFFn4=; b=LEZndf3rA55oBn2MHsQQsCknYrAhykahNV27P7bFVOEDLEEVJkFSgLOmkbuCdecxU1 kjrCuji3oSHkIBXZD8gIi6ANGi8RyY+0Z9sz/K5vjiz9I5wslf1ighJYUoH8heRtRTnQ A24/EwwzgkXHa/mwLuQhisIqgZle+WsLiVrndpStmwOkw9cq6MrXaXFRgddb9nEOPNzO kMZfR0Rr0/euHWgM9C5mISmlxRd7Zsn8NQlygTiR2AUpZBfOssPzI8MeXxETmLxLwxiv DzM0n2WnFGDIUeEDvVK1QzIoCTbi85gRZqP+Kyu6IOhib7YMsTdfcGkmqm2Y1Dd4igb2 dziA== 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=QT0+8EtvT8XyIkLazk8pXkyPSXlhPOgzMJ6VTGqFFn4=; b=uUuqStdcmFgKu/XiM7s9Jn3lLdiNj9TDmCJVsIgAk9dNDLpngZMACD7jtcqxdRrLzQ LNaFW1U/NMhqXF8WJjv9T92GdMvqwCMRvw7yrkHn927HY6uOufVVEkLsB14ix+ARakJK RjVsiSoGNwjTtJp8OwcKCQ3olKkXz4n/9NgDQdZbx9Awp67p2XXN7iea0AqFuLaTCtqT gtIEeLVyTIK+rBPzmMIEX4YaKfnHhjpX3QCDpQ7iRgCVpZPUdI+3768rGzC/408M2GMU y3qr+kxuwAJUBowKaHOyUKMYkedXvpjiLabrkbDKBT5YrFjHyQNoeidDVF2Bj551WQOt mTsw== X-Gm-Message-State: AJcUukcdNSJE4o/fTqlbKaQ4RHvUk5FeCJHvysZOHRWOXaw4Ctjio1iE ZrY384KYeX7fyQUvw4ZHopU= X-Received: by 2002:a50:9784:: with SMTP id e4mr5199184edb.165.1547025433847; Wed, 09 Jan 2019 01:17:13 -0800 (PST) Received: from localhost.localdomain ([191.101.9.198]) by smtp.gmail.com with ESMTPSA id a13-v6sm547972ejt.69.2019.01.09.01.17.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Jan 2019 01:17:13 -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 V5 1/2] kobject: to repalce printk with pr_* style Date: Wed, 9 Jan 2019 04:17:00 -0500 Message-Id: <99e9edd31414bd240286b5b63b39140fc74e6ca5.1547024167.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 Repalce printk with pr_warn in kobject_synth_uevent and replace printk with pr_err in uevent_net_init to make both consistent with other code in kobject_uevent.c Signed-off-by: Bo YU --- Changes in V2: Improve the commit log, doing as the patch did. --- lib/kobject_uevent.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/kobject_uevent.c b/lib/kobject_uevent.c index 27c6118afd1c..c87a96c4800e 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); @@ -765,8 +765,7 @@ static int uevent_net_init(struct net *net) ue_sk->sk = netlink_kernel_create(net, NETLINK_KOBJECT_UEVENT, &cfg); if (!ue_sk->sk) { - printk(KERN_ERR - "kobject_uevent: unable to create netlink socket!\n"); + pr_err("kobject_uevent: unable to create netlink socket!\n"); kfree(ue_sk); return -ENODEV; } -- 2.11.0