Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4530898imu; Tue, 8 Jan 2019 01:42:17 -0800 (PST) X-Google-Smtp-Source: ALg8bN6apqRUHF7jGeG9/zOciqZxTOy0mHhmdd+6pQW59A/WYmaJyNZo5Z86g/C7kYXrZ3EdrQ8m X-Received: by 2002:a62:b15:: with SMTP id t21mr1072372pfi.136.1546940537490; Tue, 08 Jan 2019 01:42:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546940537; cv=none; d=google.com; s=arc-20160816; b=XUpHCwoQuBztjO/ipyG1TrIFvOf3pPRLSiUe6/QDnYofGWM77pzDxDxBWGNuXKiUm1 yT9GBnTsAokWl+LlgDUihZCbvKzBvfaKixQVUwQfpblMTMX612HIJLjcCztl3XI80d9u CXBTE/ysOdhgoyMB/BQGDjLgsIvrpQeNEEuUSUrNL3rMsOzKA8llQPIM4371x5FGCpio LsnzEDmd3SzI1+clhtwF6WaenB3kTPwul+euNiP+A6LYsPUyctRBjMroRkKphWPqAHoF 4tUrGZGejjT9VizMZSN4MCTtM9KHfuSsiTO1/dHnWglfq8C7MLXFDutuDq48D0oRpneT C/Tg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=s/KC+dYTkmm346c3dFdW7Q9778m55qi6fU42h6VVnm8=; b=RhCdm2DxPc84aka9fC9fE/fwQbeOOjT/LrWBgHmpbzHB+28ZAKmT8PiubmrAhJWlJG /DbAmHqH+cWts4Ygi54SUXPlnCYszYLC5jHvctf2HtTOsTCxputg8LOwmtde0uwJ2H5B Kgnmgpc9nX+mO6A6rIq1aU8eu/gDqXvQUDArz+D1q5KZ5RxasvlmCS5oakMrz0l6CoFW wgD/gYNYxc5h7wESJO27xxVAtRJr9eszhn83bA1UEdlvQd9OSlQE20+u8NIi4zhmsmgP Tu/JRoOxA3A5c1giGQKXxyxN6n8llJBOZJ3gZd2WP4RR0oSW5E7O+Uk3QifNXrz2RI3q B8vg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g8si4040259pli.50.2019.01.08.01.42.02; Tue, 08 Jan 2019 01:42:17 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728062AbfAHJkK (ORCPT + 99 others); Tue, 8 Jan 2019 04:40:10 -0500 Received: from mail-ot1-f66.google.com ([209.85.210.66]:45993 "EHLO mail-ot1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727877AbfAHJkJ (ORCPT ); Tue, 8 Jan 2019 04:40:09 -0500 Received: by mail-ot1-f66.google.com with SMTP id 32so2909545ota.12 for ; Tue, 08 Jan 2019 01:40:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=s/KC+dYTkmm346c3dFdW7Q9778m55qi6fU42h6VVnm8=; b=cQ0vo5QGfN7qjpoelxCc+q3192dQipb4po3benwGpWXMWPfc86JQ2Y6gWsfCnsQS5w jtVep3c1KKyIPwY/7oCJhCeANhZA94rWqZxMXSuSgBVspxRBK8eveYwTGLgNpIjEk+EH 0IX0yIGompnq6m7ho6uTtjCYU61V/2tI5Ea+hFQ6fUwfBxHhySW2QjUpHEZQoNWz1VRD qYBsxZAqCZ94SRf8YIJ/Ztj9HL1xRw9ASm+qkA1p+hNO1pk80aDVfRJgVoqkHMk8Yk3N mQXT5aDExrOhoxVTttGLeuB06liASQ6+OU2uLTZHklii/SFVac2Txbq7zyhsoBcWFHzf S5qw== X-Gm-Message-State: AJcUukc/9EN7BWG3dpAscIrx8JMAHboIq++0QYxLG/H9nf38BDR+KldN bvlAZcA5T4VE2e5JTc1CvZ6fxd5RwaJyJEqUtz0= X-Received: by 2002:a9d:60b:: with SMTP id 11mr697419otn.200.1546940409006; Tue, 08 Jan 2019 01:40:09 -0800 (PST) MIME-Version: 1.0 References: <8c73ad4b2b29bda53f2dfb6624b8b7984b52e307.1546915794.git.tsu.yubo@gmail.com> In-Reply-To: <8c73ad4b2b29bda53f2dfb6624b8b7984b52e307.1546915794.git.tsu.yubo@gmail.com> From: "Rafael J. Wysocki" Date: Tue, 8 Jan 2019 10:39:57 +0100 Message-ID: Subject: Re: [PATCH v4 1/2] kobject: use pr_warn to replace printk To: Bo YU Cc: Greg Kroah-Hartman , "Rafael J. Wysocki" , Linux Kernel Mailing List , Joe Perches , yuzibode@126.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? > 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 >