Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp4616918imd; Tue, 30 Oct 2018 05:03:32 -0700 (PDT) X-Google-Smtp-Source: AJdET5e4/qYWIjlkkXbK9pNKNH/NR0y2Gq1cf24CV82OMBu4a+7ug9qTVWjtf2iYR3LCT0FKaq9N X-Received: by 2002:a17:902:bf49:: with SMTP id u9-v6mr5722164pls.10.1540901012317; Tue, 30 Oct 2018 05:03:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540901012; cv=none; d=google.com; s=arc-20160816; b=EsY/pLOH3nkNGCwevb6EM17/hyHsWd/EMWHXGA26r3QEFrlk7qbHGn241tuqnBA22L dmXhRGtthWY0ZFcHMaLkIdbSSdO6fmBzoMPPAQLtAXnErgTXojR93mjAptCaEJUP3Gwq GppitrdFeIC6ZkQ3l5cdxNkEixyrXNG76qFTJeJUDbIQRWlRT0p0IVqI5EgWH0mxiCrd xVT7abEvkD327kJFYD4M+tQbNsbFGf9jvKbaXpFCJjEVmV+rLhWul3BzZJD0fBz/cs4M 6KZqWp/I0/r6KUDO0oP+70eMxhOZ2umeK0Y8wONiW3gmMPR2hgH1B1XkNdYpKl5ux39q KXZw== 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:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=a3Tvb6WgPF/Sj50NwfxbA/QgtUDCwGBQ16kL8T3yl3E=; b=02r1gMZQAmJcySwAgzogk/rOcO4ZItrkmUEbnubXaK7KS4h0FhWZ47Gt5ajBvD0N+w BY2aLbr4UEg5TrABA6dv47lc6MAHgNFCFe/9ZVstQXt8uuS0dhJgjOB4e6HygVG35Fmy u4Nj4rmGPYvDrvqHKaQNp3eMWxzmOp+ljcUE2p8DIGUncmPC/QjwOAbI90z8u1799VaM 7khz5iYwRoSJvud8DZMhRppPNx2zsKfzo6VpnDJIO6Ejd2SqQbbuRHbcYDLndd5OqoSY lFv8Ohg3/v7yc/fYLV3+ddvRXVxoWzFCGC2o7s9yA3Tv0v8pmaQ+eokJCoHqDabhoIhr heEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gWSkDfpf; 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 f38-v6si24623232plb.168.2018.10.30.05.03.14; Tue, 30 Oct 2018 05:03:32 -0700 (PDT) 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=gWSkDfpf; 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 S1727997AbeJ3UzT (ORCPT + 99 others); Tue, 30 Oct 2018 16:55:19 -0400 Received: from mail-pl1-f193.google.com ([209.85.214.193]:42768 "EHLO mail-pl1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727669AbeJ3UzS (ORCPT ); Tue, 30 Oct 2018 16:55:18 -0400 Received: by mail-pl1-f193.google.com with SMTP id t6-v6so5422493plo.9 for ; Tue, 30 Oct 2018 05:02:06 -0700 (PDT) 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 :in-reply-to:references; bh=a3Tvb6WgPF/Sj50NwfxbA/QgtUDCwGBQ16kL8T3yl3E=; b=gWSkDfpf0zsGlH6r/D+H0uDs29efNc1xS5r632X945zoNbJkfnQwvQ1xF7vYsDVYSA Y2uaAwQXanD7lDpgvhjAWw38XT87dwHwGZARRoMlYq2JSgI9JD+KawMXDxx/7+1GWexo SJ41x+DNbHAu4eJMmAaDJfTrd/MvcK5JacO29VmIN43YDqyBS4Gm8Abzr0kRT1a5V4Vd tYTIm1aU9Q9MJCxkGUkz3Zai1ctkjUAHP++TXQSrd/6rTYgP/mV5sMT8rUHmkz78MOst BFic/i03Er6N+/tbFrKSNT9SEQlotH1aK2ZDOtkzg9l0Phb92qzBgtQRKsfGxvHrcSJp sXGw== 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:in-reply-to:references; bh=a3Tvb6WgPF/Sj50NwfxbA/QgtUDCwGBQ16kL8T3yl3E=; b=oZ7aEm9A+QyE8Vgz1toLJscnCPe3Xib8YBchdf5AR4mxvMp2RC8JBfKQW6AyRNwktF ams5bLyCo7SyJgA55FntSd+LvOm7r4RuKWxKLY56uPq+wlD6utnwFeBBSFbx9oKFvQ5L HXL8cqJmPmjDNbw8yxA0iKzAAMLdXQCh5dsInJcNx3bt7oQ7y8hVzQjetzwJA24di7Ab KjNa7rso1TjI2dPwuFmreTCWTBYpbTGbxdXugz7U1jQSJhTL4XL7gW8wS+5MZLr9tBPU vb20fx8/BPQVX2MVEWbA6i2OwpfrQD9W5JGAWLWZzZ3TZt6bEbskx3qtiIvFhRYcouhm ls5A== X-Gm-Message-State: AGRZ1gJVlC2PndrcjaMvcscr3vGfDjtwYoKhkmmvOmSK+CMTt4rM3Zks PJ7pIYO4g3pE1WHr8V0X99I= X-Received: by 2002:a17:902:708b:: with SMTP id z11-v6mr18998809plk.151.1540900926126; Tue, 30 Oct 2018 05:02:06 -0700 (PDT) Received: from localhost.localdomain ([191.101.9.198]) by smtp.gmail.com with ESMTPSA id s80-v6sm27378369pfa.114.2018.10.30.05.02.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 30 Oct 2018 05:02:05 -0700 (PDT) From: Bo YU To: gregkh@linuxfoundation.org, rafael@kernel.org Cc: linux-kernel@vger.kernel.org, Bo YU Subject: [PATCH 3/3] kobject: fix warnings use pr_* to replace printk Date: Tue, 30 Oct 2018 08:01:16 -0400 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix warning from checkpatch.pl use pr_* to replace printk Signed-off-by: Bo YU --- 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