Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4532551imu; Tue, 8 Jan 2019 01:44:35 -0800 (PST) X-Google-Smtp-Source: ALg8bN7WPLOzg7cUs3k7DNi86qZv/G4NwRfY+iPM2KeEIZOFMzplITQdzA6oc4PVnHPAfKoOFM// X-Received: by 2002:a63:f65:: with SMTP id 37mr892695pgp.238.1546940674939; Tue, 08 Jan 2019 01:44:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546940674; cv=none; d=google.com; s=arc-20160816; b=HVrT1OrjHDC2xzh8adXHAxlPdOg8yGFNKDG2rZvdfGbKv3BllZPNqnY1kP6VEwVSst hs+hLM34B1aHLZmQ60tHJ7QXmmBtSaaiwdosf4jvG+b3Z1j1bWVW20rXdfuJ4Tx5wX6B RlSQPba8SJyL1O/3Qd55YItQWNKacO9BMtEN1gcYR/BL8GP8e5P17nDGRI7MNPK+2IPj zOM5R1T9DoJHJCP08Uz633u3+va4PD0UZY9n69jf60jB4ZvwDS1IzwraJHBqMY2NwhGP qqXIN83SalesCHhzqi0lrbKZJVfuD3pDPkaOvDC9DxiTgYZLKX/9dT9QgTjBXrg0Dd42 Oi0Q== 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=vGc1jTQhyM25nf+TjaC46ic6uVxzRFFNtDt1Z+8If7Y=; b=laz4VWUPxJMiIjtnNBtupYH4ge6m8m/u0EQF5JuZNS3ri9/j3ex8yJ8uuc2eG/wysA YiX4y6s7kGhMO1qw5p3GOtiR/WPbdgNwux+K3aqTiteoiS2ddPnQgkIg2fF3ppC3VrFv //Wr4gIgb+T4RpgTMxcr5DGC77F0S7ahFwFkDIsvMJ9OsUE+9cqDCL/YMeg6O1uY8Fgv E12F0LimzVyKcHdScRR/n+Nz8WYVaHbLAsvpniFZEEwylgx6C6mXUp+rkminHXFSCspO +0ESpjLQJskd9kNUwcfe379Y6JQmQ3ngeDtu9SIuQrhUakxxu5vjmZhpk0QQk4lg9mM3 Q7qQ== 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 n1si2646497pgq.36.2019.01.08.01.44.19; Tue, 08 Jan 2019 01:44:34 -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 S1727760AbfAHJmA (ORCPT + 99 others); Tue, 8 Jan 2019 04:42:00 -0500 Received: from mail-ot1-f68.google.com ([209.85.210.68]:38962 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727295AbfAHJmA (ORCPT ); Tue, 8 Jan 2019 04:42:00 -0500 Received: by mail-ot1-f68.google.com with SMTP id n8so2938397otl.6 for ; Tue, 08 Jan 2019 01:41:59 -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=vGc1jTQhyM25nf+TjaC46ic6uVxzRFFNtDt1Z+8If7Y=; b=uQn1MzeO3X8DernbBQ2/njwxPvzTGbI/pf7l580R79I7KmxYUB9JH2TAes8m1686Ja YWagam5sbGg+sWS9vwiIlbUjBg6vMlcIgeE0ENzPjgS61mc3SW/Ln/G+c4IRqLC/KB2J CCcY5X/zqjX+0kQqD4Ci17GZ6MjBIs6Oo3kkYH2+++7vB2tmhE3vMo/VQUIxuCcthR6K zhJVsH0dyxjGJnwptTtkYG4FCTXgVAsGAd3uOqdVHqXDRXDQebiFXzXnW3B0tN4eKRQV e3IcdhkH8urQil5yv3z5e9CnZmm5g8NsP46RCIkTc8HEeBVWSCb/+ZzLufEQB/rEqp4I QPqw== X-Gm-Message-State: AJcUukeKNOY4Yr+Tz7xEZFRro+22bZq+kYnpPssaZiu/HifJPmOIEvpH BLjqx9vlF/eWlAYbWv9Z97shdV+FEJ+SE14bNzE= X-Received: by 2002:a9d:2062:: with SMTP id n89mr682319ota.244.1546940519184; Tue, 08 Jan 2019 01:41:59 -0800 (PST) MIME-Version: 1.0 References: <2ba5177197f8b40e399867ea1f1aee2920c3cb49.1546915794.git.tsu.yubo@gmail.com> In-Reply-To: <2ba5177197f8b40e399867ea1f1aee2920c3cb49.1546915794.git.tsu.yubo@gmail.com> From: "Rafael J. Wysocki" Date: Tue, 8 Jan 2019 10:41:48 +0100 Message-ID: Subject: Re: [PATCH v4 2/2] kobject: drop newline from msg string 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: > > There is currently a missing terminating newline in non-switch case > match,when msg == NULL > > Signed-off-by: Bo YU Reviewed-by: Rafael J. Wysocki > --- > Changes in V4: > Recovery originly declaration, requested by Greg. > > Changes in V3: > Improve the commit log, requested by rafael. > > Changes in V2: > According to Joe's suggestion, drop newline from msg string > --- > lib/kobject_uevent.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/lib/kobject_uevent.c b/lib/kobject_uevent.c > index 499dfcdafcb0..118226a02707 100644 > --- a/lib/kobject_uevent.c > +++ b/lib/kobject_uevent.c > @@ -200,7 +200,7 @@ int kobject_synth_uevent(struct kobject *kobj, const char *buf, size_t count) > > r = kobject_action_type(buf, count, &action, &action_args); > if (r) { > - msg = "unknown uevent action string\n"; > + msg = "unknown uevent action string"; > goto out; > } > > @@ -212,7 +212,7 @@ int kobject_synth_uevent(struct kobject *kobj, const char *buf, size_t count) > r = kobject_action_args(action_args, > count - (action_args - buf), &env); > if (r == -EINVAL) { > - msg = "incorrect uevent action arguments\n"; > + msg = "incorrect uevent action arguments"; > goto out; > } > > @@ -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); > - pr_warn("synth uevent: %s: %s", > + pr_warn("synth uevent: %s: %s\n", > devpath ?: "unknown device", > msg ?: "failed to send uevent"); > kfree(devpath); > -- > 2.11.0 >