Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4252854imu; Mon, 7 Jan 2019 19:13:04 -0800 (PST) X-Google-Smtp-Source: ALg8bN44MuIgbUyEUEG4O4JRKIpBvvRM+rwfuXG8ICn09EIydFHIOiBkaeMzZAmBg+KR0Tnl7zGA X-Received: by 2002:a17:902:b943:: with SMTP id h3mr90598pls.12.1546917184018; Mon, 07 Jan 2019 19:13:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546917183; cv=none; d=google.com; s=arc-20160816; b=i/lOSXs8BDNta6KSYB+HoPaABhVE4CpeOXR1T+4osjIgm9VQGM04VirXwnJiwEN2KT qXg/0O9G9js0JT7v02nvaXhyO9oZKVM/khqFZcFsGacmvC7Xrk6vzFsBV4CaCKoQEHzo BNNUNbFK9pZGnKO7+/1gMc+eQusgAn3Mj721NOvs14sP8TNdku7OMU+0MyJSp2I9Mh8y iu0/R5OU0sgTnRbN0ICRhspizgaf9hkn7+dSJbMrYLTdvlFuF4loEDAOj2wZAgckSfJj QPY+rDjvpdpR6mVDA8k54lWA08DFwjpPXIR7xrUFKxtLrDISlh5ozHDopSUtIf2UbY+c dZIA== 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=sGZK5k3+us1fsD2MJBky8yVgRarUBxYg3xvOC2DjMcw=; b=Jg/H1tzdO/4SgmxDPVaBdUMJrvoNRBlk9tgnOPnI8RIRkj076Sf38+JjLHWAMfX6cE x1iKx4oEnwKwQVKIdkaXgpZ8Wk+Hq7s8bdwiVGiZyI0UWhjmSfGP4vx+wbdl+iYLA0C4 r/Fcr7N+WDOqleMZIcv3NWnOe2z8uG6Vz8P1msBspoNmTbarsoenHrDgdtU5KqpnQ0hM Sxlb83n/9ZtEi9WKwzslSlrSBajZ6b9LsWbLjngU6umFizfFLMUeWCKszoeTaYR+OvCg jTaUorGMTOXSJiIYHRgreMuPdjVGBSvuuTZPMWYot01zsIhcfExHHglT4MRh5EzMtb9j jhaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=jk4L4uCC; 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 n30si16405805pgb.406.2019.01.07.19.12.48; Mon, 07 Jan 2019 19:13:03 -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=jk4L4uCC; 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 S1727543AbfAHDLH (ORCPT + 99 others); Mon, 7 Jan 2019 22:11:07 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:38335 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727371AbfAHDLH (ORCPT ); Mon, 7 Jan 2019 22:11:07 -0500 Received: by mail-ed1-f66.google.com with SMTP id h50so2792061ede.5 for ; Mon, 07 Jan 2019 19:11:06 -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=sGZK5k3+us1fsD2MJBky8yVgRarUBxYg3xvOC2DjMcw=; b=jk4L4uCCMugxV7KKFGnDO+g8gI6TxRUPRGCCM61IxytOksHrPiV76B7NnfAudsplEB N4huuCEWt09uYINpw+MPg0hGzsE9E3TUmr8ywolb1vCMUWdJrZ4ijJRf6+fC7gSklAjD txKbT0lREV7zZoGhJ98g2WuI8ukO34cHVsZA6JU64+7ODsdvsyXH65gDOJgyHpFGeUYe dR513Skqay7NUi6lxoIwIKGx8bJbP4wrKr+3H6uUUYm7MCSxxRcj704Is3lBwUBiYKYB wPsmm5nQ73JTcwEGS0hQsLgRqXrMDkQszcH/7OBEZpujcXW9YNzurs4LVA4mcLY9L7Qv 5DDA== 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=sGZK5k3+us1fsD2MJBky8yVgRarUBxYg3xvOC2DjMcw=; b=hJmrk0q2dTA5adzULWujmwdguC1syPCov8+7CPIYoFgPXlhbOpDZSWMDyPFUSDRMVi 2tkmcRRnA3D6eTa6rMuZsByeBU7f35qSpB6qGN4979AsSKbFTOXTcTB/ih3GeizqMtDk HHXcXpMbRzseZh1BDBpeoPN7WSygdUcJ6CzMV6wwx3MxZ+hAcTyz+E0D7Gr6ZKc+UuAc d5kaHvZWVmn2nypj6FkhRhn5EP+ErulQvOU55VFB9IJBWXICLb0lFAcJDc2mGH6aOxIn D3tTdzZ5destsDRW3CuoLXMTFwypT7M5bLz5DmFK3hwhPxu7pHF+bG+bXaTZUK3dXkB/ izhg== X-Gm-Message-State: AJcUukdgODIcXLRXyMGkYAcvNvlV6vilsMOlc7cns6JUzd3JtKhsDKV9 4bBkcZNwSr4mMA1yZ/d51OI= X-Received: by 2002:a17:906:6c14:: with SMTP id j20-v6mr309750ejr.41.1546917065804; Mon, 07 Jan 2019 19:11:05 -0800 (PST) Received: from localhost.localdomain ([191.101.9.198]) by smtp.gmail.com with ESMTPSA id s3sm30036635edm.31.2019.01.07.19.11.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Jan 2019 19:11:05 -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 v4 1/2] kobject: use pr_warn to replace printk Date: Mon, 7 Jan 2019 22:10:58 -0500 Message-Id: <8c73ad4b2b29bda53f2dfb6624b8b7984b52e307.1546915794.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 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