Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp507929imu; Wed, 9 Jan 2019 01:24:28 -0800 (PST) X-Google-Smtp-Source: ALg8bN6eN764KhBorD0Q181yPOm0V3EOmPVG2SKUUS7OFPvLpL1bl8V+fIBQTPfG+c3liD7Qi22L X-Received: by 2002:a63:413:: with SMTP id 19mr2466711pge.7.1547025868123; Wed, 09 Jan 2019 01:24:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547025868; cv=none; d=google.com; s=arc-20160816; b=lIKOOP9/GM/W4nvNERZRm21HErr9OJhQmH2YgBqIDIgTA09rl3rdVEdzAO4+tVFLry EV51htTB1rDImQcUKEVpvPkK0dGXBLZUzyX543sBJYR5RvYYCg1ZHNpb5iuIHNUBd3q9 6ThlHjJ8AVBL8ZnoTyKprVEGeAf0VBEcZddWlA36DuiPymTCCCd8FM1c1Z4n2fv0/DK1 e2sIvDykzJm8wAlc4wYvNQ1DrikjNZgDJ6aKQFnGGaaYmKOn21lTPWgYwkjeaXTCsBqP FqBXo/SQ5GQbpl2+gKIvsuU/lwh8MZwG2NqwRhcrXLOkbtbAGP4yxLT+0c3lDbs9dxD/ lBOw== 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=ijJHPkL7MDwSOoHK+fa5FDtblxjmSaM4LwORxxXzQ+M=; b=qwfrav9KkqYpO4xZ4RNZiufmGoTVTnmQse7YP4mDmSpTY6cgfm0q4mX0PUXcITZHOn KgxfBAjNarpkCivUMyd1ADi0rnEOLMpeTLNAlJxI3Dy3tBMPcwizBGtiHJ/MIk6ovmhS IfnFye6QrjyvxR1RuMObbkww26WLTMjnjViLIzslDJ7/9isBCb+4Uu1LBoIEhIJOqClC vX76qTy3T1PdhBPvXgax+DEuZoE2NiuuI/kybahkfd2Mzy8EgbdvmRVlfT5UxHMYZ1V/ GlDKcbM9e7TXNr8Ki/alQroU2cIqm3dRqt3KrkK8Wjp1GMhP1wAk0SxJO7bsgX7jLxoV DTLQ== 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 a4si7657469pls.262.2019.01.09.01.24.12; Wed, 09 Jan 2019 01:24:28 -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 S1730277AbfAIJVt (ORCPT + 99 others); Wed, 9 Jan 2019 04:21:49 -0500 Received: from mail-oi1-f194.google.com ([209.85.167.194]:44119 "EHLO mail-oi1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729487AbfAIJVt (ORCPT ); Wed, 9 Jan 2019 04:21:49 -0500 Received: by mail-oi1-f194.google.com with SMTP id m6so5719439oig.11 for ; Wed, 09 Jan 2019 01:21:48 -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=ijJHPkL7MDwSOoHK+fa5FDtblxjmSaM4LwORxxXzQ+M=; b=AskHXOjlzPbjBJ0NaCNGFZhbscQS07wR0WO/NyXzVcZO0qZH2LWLh1jBOM9Xz99Hvd rOUfs2Q89Dpaq84piy9exUB6dSSO7N5GB3F52CMZlXxuaWWk25vFe9X/R85pJ3O7GJbB +1xeKNpdwVjy6VS3chKwYPhqWZv1O7mdhc//Jyu7D4XRvl8sap9E1x0qGOZTxoHmW693 Jxxc8zE8EFZGgiTRpBPFPTf0gjyl7zaAUh6oh6E9q+xgoPvwz9I6dlDKGDy4l6ajPdFa UJaFAcoabd4dlU/ELICA1pE61V0AsPR4cHGjZwBAJzsY0ags0FMpQ2BbbDy2VddYQJaN IzJA== X-Gm-Message-State: AJcUukeTqNP0bToDSS89ztE/VpOmpL5E/zwgP1T5TARdNQY0jIDblKlL l5dbkjSIGXRuqchf3EsvRUDQajwcecIeCxOZqxg= X-Received: by 2002:aca:3d42:: with SMTP id k63mr3530628oia.95.1547025708157; Wed, 09 Jan 2019 01:21:48 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: "Rafael J. Wysocki" Date: Wed, 9 Jan 2019 10:21:37 +0100 Message-ID: Subject: Re: [PATCH V5 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 Wed, Jan 9, 2019 at 10:17 AM Bo YU wrote: > > There is currently a missing terminating newline in non-switch case > match when msg == NULL > > Signed-off-by: Bo YU I have given you an R-by for this one already, so why haven't you added it here? Reviewed-by: Rafael J. Wysocki > --- > Changes in V4: > Recovery originly declaration, requested by Greg. > > Change in V3: > Improve the commit log, requested by Rafael. > > Changes in V2: > Drop newline from msg according to Joe's suggestion. > --- > 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 c87a96c4800e..f05802687ba4 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 >