Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp4253938imu; Mon, 7 Jan 2019 19:14:39 -0800 (PST) X-Google-Smtp-Source: ALg8bN59s51yiwdwVHaQYs2A18r3SPweUzXG1p7zksXh9gr1knmzBP/zJTwU/SfW1pCj1COD6mBf X-Received: by 2002:a63:7a09:: with SMTP id v9mr75777pgc.112.1546917279032; Mon, 07 Jan 2019 19:14:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546917278; cv=none; d=google.com; s=arc-20160816; b=XmEHGBUxFz2KYtFKlmb3oO7o27nF/Ac19ZdJM/jQbuTZoqfFxpGp95aWTHyDe7oNaM A9Pm43qWkiARwrTjEjQs+MtryQG7Y5IQCOlwSDbvp7rKZSbIn9lQJf4atKFmUadjiv0K ZH4ZiQtrlGFlz7LyTTUv7bh6sNx5UNKOnLv94CfNky/OX1VSd9PmVb4Pg7M/Ruq/RywP jMnLHFUoskcYE/WMU0WcgOSOZItYZBgc8jqxFTt2Z3VXRZh30tFfjMcLvoAZ6fLk7trI rbuQ7/gwhI0SKAGoz7AIl30Znlq3UKgdZ0E8uT+YfgmmS1iMgpz6BFwNZ4vz1FmilsWi ZLzw== 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:message-id:date :subject:cc:to:from:dkim-signature; bh=x1qWC+eVN1k4ler/EqrFbu9Pj4IAc3px2CReajRy9As=; b=AVJiSp3Uy+D1WPMcHELmCbHCQIWeUg8cBWOgC29eVR91jIBl+BjJtLofaF1PHiVaM6 LLUL8896Dgvoz3QzwNUPv8F6ypHHuAetj1/zzaW+Jy26yyl/AXD0/TYzJIeadKu/Ec1S uaVkS/B2bFTrh6AdqsJiFM+T07g++aijLhrms87esR2BqQx/aMhCH08EwhV2W5gFE45x jHXQITlJ1jx42jvvfVOYOW4uNHk1LV5qkvH3rzPUyhmNFik3PKUiM8IulIB9VhiMvrb2 xPiqBNSptMDi64kscgEDe9IVcR7cMLZFvRM7mxDswezKnR9Awbup9l4tbrwK5fALYKeK 5eqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GBypAcq9; 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 64si35952806pfe.74.2019.01.07.19.14.23; Mon, 07 Jan 2019 19:14:38 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=GBypAcq9; 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 S1727551AbfAHDLo (ORCPT + 99 others); Mon, 7 Jan 2019 22:11:44 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:32919 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727145AbfAHDLo (ORCPT ); Mon, 7 Jan 2019 22:11:44 -0500 Received: by mail-ed1-f66.google.com with SMTP id p6so2832242eds.0 for ; Mon, 07 Jan 2019 19:11:43 -0800 (PST) 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; bh=x1qWC+eVN1k4ler/EqrFbu9Pj4IAc3px2CReajRy9As=; b=GBypAcq9ZSVM0kxOjOVHgRQb6BkiIWUIy6Wv6up2DCusRWzVMy2tVauhpd+QVBav90 OzkaR7GLGLk/EcV0kxFR8+zCpQTXGlLdIKrVgPdouhK7M6r06yQar+W8pFGlRXpXn/FN hEIouBL1hLcnoqOApVHL+ET2x31apOh6v5tYOYpWFGqOUTtKxTV/dG7vBd+quPUe3Rv3 1JNJvd4nTIfWPnw+z/PUwFHwABeFaAuhyT96yHtx1upCyknQWpCvYKEEENpmiFYSfDk8 DJLxzV3HAqLYdZlwXO4UzYLSMb8vapgovgps5tdKrXq6cq9LMHazBZy82handoKa/Q6L NUrw== 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; bh=x1qWC+eVN1k4ler/EqrFbu9Pj4IAc3px2CReajRy9As=; b=AcpQBX20pKqO9wN5l9tvagkCOUNLzdHxJL1Mu4qLMqzbbN4gnPmvT0xqjc5fe4ns+f N/sp8vcux/LYXWEoePut8aGLoSOaw9UUSX7po6Mm4s23onppa3vLd/jJjhkRZuw9r0xW BQZyJmQ4NUbDtUEX0OFeRkPwUEZVxfLRctWdaI7Zw2XckfISgQWZUVNO9XVgQQTjufSK SD2VA5phu9aRSREnFd7X7Oi6vbfV8pg5U1MjMsqPXt7xzGEaxloJzIR5e/kRf8ok1pyq 6rDPIs05nsJR+2xx85959eAjUcNB9fvFfO0jHJJXzC29dIlpumtSdlw3rep8UsqrrPxA FeLA== X-Gm-Message-State: AJcUukcRAAU/zqQZ7A7AaHVMJAXzHqYF0mRPt3xjMNoiUDsLo5t2xkN4 KlnOMBkER32dxWNu71gBpMo= X-Received: by 2002:aa7:c352:: with SMTP id j18mr323119edr.295.1546917102526; Mon, 07 Jan 2019 19:11:42 -0800 (PST) Received: from localhost.localdomain ([191.101.9.198]) by smtp.gmail.com with ESMTPSA id m14sm39303015edc.27.2019.01.07.19.11.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Jan 2019 19:11:42 -0800 (PST) From: Bo YU To: gregkh@linuxfoundation.org, rafael@kernel.org Cc: Bo YU , linux-kernel@vger.kernel.org, joe@perches.com, yuzibode@126.com Subject: [PATCH v4 2/2] kobject: drop newline from msg string Date: Mon, 7 Jan 2019 22:11:35 -0500 Message-Id: <2ba5177197f8b40e399867ea1f1aee2920c3cb49.1546915794.git.tsu.yubo@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is currently a missing terminating newline in non-switch case match,when msg == NULL Signed-off-by: Bo YU --- 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