Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp5067264imu; Tue, 8 Jan 2019 10:55:12 -0800 (PST) X-Google-Smtp-Source: ALg8bN4/kJc3DOWaclO3c7VQAO9UO2h4gkdrF7lO9iqEMpIxiTc+rRBkenbtX+1ZBlAJss9ZGKzD X-Received: by 2002:a62:7dcb:: with SMTP id y194mr2895992pfc.113.1546973712793; Tue, 08 Jan 2019 10:55:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546973712; cv=none; d=google.com; s=arc-20160816; b=aKYI+E94ncrZS0xXuBe+a6dFldR1ALUz3RAvEOqjvwVm6hayMcC3fnvfH+OvbbwLVe ftPuQSsJB52Kls4XH1QBOvQuDhBuFt2fwTw8tkV6YsMCL/QrOZZi21tNdwFPZb72EDwL Q4vzEw2e1kbJDQ05WAX1clkP1b49KtkkRbhVDnPDLIiftvGcBAgJEkE4AfrkLh9uqrZz 2+0k38TIEAws5l9T7qjPxvfZBOj0iOdzEnEVs8/oOxsK0RIl9fvoSoV5Q5YcARop6j5y yZVnhtOI++rg5g+UytHqbwLzQmlIyRWi5aESJcxQtFnEbxyWazgFBsuqN/Hsre8oL2TQ t/0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=/LEZbyrwpQwK3zVuHr1t2qbnhLXWjst40t4Frr+TtLU=; b=IhJqbjdAkaPClx/Gh5I2x9CI+PWaHeiVm9itvjIxGsVHq6Nk654S0GiKgxfcqbUhYA 2AC8q9tFlSepLUPmKxtu5hTmWv8OT0F52ZrrJoFcu2jVLXh2pKq4HGgbEf5/CHDjc+my ebYAyuTYiJrCgRXhT8H6UuEsM/6D/WSTVZO034eLuhJdgKv2M+ZNV/FmcW5W9ZZ9vXfM 1sZg7V8oxT5GjztSo7Y4E1JM/tw2s94LzclFxRc02kZ33CKduVEzvxl6RYD5Ny1fVKZp PP9Nv1ccpjO29oKMh/bN3f8WAQa4aGWlBkjUEwuqKjBvdwSaLyOHJ4I4LeowfssS7xv2 ZUUw== 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 g31si50113287pld.358.2019.01.08.10.54.57; Tue, 08 Jan 2019 10:55:12 -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 S1729375AbfAHSM6 (ORCPT + 99 others); Tue, 8 Jan 2019 13:12:58 -0500 Received: from mail-ot1-f65.google.com ([209.85.210.65]:43027 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727484AbfAHSM5 (ORCPT ); Tue, 8 Jan 2019 13:12:57 -0500 Received: by mail-ot1-f65.google.com with SMTP id a11so4304954otr.10 for ; Tue, 08 Jan 2019 10:12:57 -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; bh=/LEZbyrwpQwK3zVuHr1t2qbnhLXWjst40t4Frr+TtLU=; b=qhUiNf9DrOmuAwO0JF1IJ69VNMz2DDedejRWoYlUQ+Nkf3ZjkE3zRZ6s7OihrGWbMz j+CC9yc1jeAV24h5WyvdceK36UL3hHoRU4i2hzno0VHWP2trmrrtnusW/AxgY76ZEj1l KuLK/P5YFMIuYAbqMw17Dm4ZgHnS0wsTUBGplsUtKd2WZ/AYDPAoRA6jmoBPgBUI0prJ FTqEypQdzj5WeXLlEbfkAzyv55VC1O8R16lmjZCwjJNeTV6dDo0bJ0SeDb4wALkE06K3 xstbIKlOaoPz126dkI4dSoaVAc+fhF3dmA5zWiXNoZf4x+IW+GLjy9aXB3/vuplXI4Z1 J2xw== X-Gm-Message-State: AJcUukdpdRtXBKKoeamVDkpbxzgh4GASM7ygct6maVXozehdFJQ69iMS 0ilJMB8HGnbbo9fm28PompHNtSz4PNgYuBqwpro= X-Received: by 2002:a9d:588c:: with SMTP id x12mr1928345otg.139.1546971176902; Tue, 08 Jan 2019 10:12:56 -0800 (PST) MIME-Version: 1.0 References: <8c73ad4b2b29bda53f2dfb6624b8b7984b52e307.1546915794.git.tsu.yubo@gmail.com> <20190108125355.yc7ryyl34s2me4z7@yubo-2> In-Reply-To: <20190108125355.yc7ryyl34s2me4z7@yubo-2> From: "Rafael J. Wysocki" Date: Tue, 8 Jan 2019 19:12:45 +0100 Message-ID: Subject: Re: [PATCH v4 1/2] kobject: use pr_warn to replace printk To: "Rafael J. Wysocki" , Greg Kroah-Hartman , 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 1:54 PM YU Bo wrote: > > 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 OK, so please don't call it a "fix" as doing so suggests a functional defect in the current code that is addressed by your patch which is not the case. You can write something like "Replace printk() with pr_warn() in kobject_synth_uevent() to make it consistent with the other code in kobject_uevent.c." in the changelog which would be clear enough IMO.