Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp504513imu; Wed, 9 Jan 2019 01:20:26 -0800 (PST) X-Google-Smtp-Source: ALg8bN6Skbzdx9WzyZ19hBpFER8dYd6zSaHQh/Phk7lUU8VIn97yUlBCbpAxuPG7vxTdWrVcaHFS X-Received: by 2002:a17:902:bc3:: with SMTP id 61mr5290128plr.15.1547025626093; Wed, 09 Jan 2019 01:20:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547025626; cv=none; d=google.com; s=arc-20160816; b=dSUsA7NsSCgxjvUtPpe7BUvb/hxgfBrsU6Aow8XDBXk8iqMMoe0AP9BSUakxiUqqc6 c6E3qMTuDa6wL04tOhtwozHzN0cHh5t2d4/kfZei9+bsi3iLF8l++mau9SegSb3RY3KR fMJ/156shMEHuCODoZ38H0E+Ja3Qa9oasn4kP/qaImQO8/R/mRiT6RG1wH7q0Ji5s4KA Vjo+Hr4YkwpnzYHmdhJNowtybqcqHePYMBoN14NX6RKyfu9N96v3JafvVkR28ivpKxcl /A7JSZ86J/19DPxtKjBFwQSL5oCoyNYmrAz4uF1Z7/BSUmVcqA3ZutkySnqEaJiHOwix EXVQ== 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=gRJXMxvFMWyixydozmc0U/Ai31AkqICeM57j02nd6jc=; b=Hlr2SGi4qupHhnkrd5sF2EX5QHUdtaAolYVMUel875XOdKLU4ydUP1/uq+27CscTiJ lsHItBc/XZhvGtnq5qo+/qXAAXupM9AVXMNDW0IOuyEM7nzZwc8sDH0QpIrr7pBlKLjR plGidA+Ma8xgtDR2A284MvX/6lMo8exE43S164hvx5rrTQQqDoc748e1sja6ZF5D2vT5 oeik/KFwOylSutFiQuL8hEhKzrVfnYCTG+PpIQd32NKD8eTmHCC1yaNcgxoJOKAVPjUF XuudHX2w58/6eEN4p90lZJtQZEns1BCcqaC0jZEE6Vhy7yeBqVWz2u7yJXyIVW5aj33b VIpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=nBPlUGoB; 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 j1si67021234pff.42.2019.01.09.01.20.10; Wed, 09 Jan 2019 01:20:26 -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=nBPlUGoB; 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 S1730192AbfAIJR4 (ORCPT + 99 others); Wed, 9 Jan 2019 04:17:56 -0500 Received: from mail-ed1-f66.google.com ([209.85.208.66]:35130 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729284AbfAIJRz (ORCPT ); Wed, 9 Jan 2019 04:17:55 -0500 Received: by mail-ed1-f66.google.com with SMTP id x30so6720214edx.2 for ; Wed, 09 Jan 2019 01:17:54 -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=gRJXMxvFMWyixydozmc0U/Ai31AkqICeM57j02nd6jc=; b=nBPlUGoBCD2pQwnqhJQ2TFataT2S3cSl6A5z9KqLY6eTQClEryoN/hVZR6sKzJcDPZ Vy8WezGfEfeBgkzdCJFkLufqEbhYBY7rzISKV72DsSJkVpT5UBTXhq4bIc3xvrod4OMU 1vDNdapSy1bOVq7x1TX6+Q1EbPM1G0TjBDKJTQyxsSWJNAeu99VaISBJZSPvp8BDDIra 9zpFIaci+e8lQYJwl9AYaMpjXAvYigRwH/rb3iEpE18yTvLILdkn3igUEmspl+Iynmmm qMydthh8weHba+vZ2apbTcBt5rUZJbswV4Ti9m0NUM45t2M3Ew0BLfsWUMcvpJQkxZf9 IwWA== 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=gRJXMxvFMWyixydozmc0U/Ai31AkqICeM57j02nd6jc=; b=LzjM8aVK1XV/W2XWsp+WKpUA/07NaSkceFFi04DD/JS/WpjUFcSICeTB1mxpLuZd9z 6tUYhx1VXTi0Fu7d00Tixageg1y0pKi8Qf4LKpJbcR71aSPLU+ZKpbeMz+TRk2hCWADl 3IloW97GPy/nff16gLrfueMXMLpiSwg+0mBHG1Mn1Hf4pD497II+Nw0EOPf3U13lAgoz yDXNPpDNlRvWWENUv+MX0qtTEo8H+w00Qixtrq6oD7JYevGz+WEs1jT/cUsM47w+WBUv 91Or/n/uBMUK2DmPSQUskiuDryUM36cvepOuRkzSDyp59MfVoJ8dhqiup26KVKHXLHx+ 58Lg== X-Gm-Message-State: AJcUukcLHtQCrOtGxwn8bs71z+rfkT8vu3p1jAbd6OpVcA+d2ylm7Pyv PEzkcjThb0IzZAldzZZODRs= X-Received: by 2002:a17:906:a984:: with SMTP id jr4-v6mr4747029ejb.90.1547025474011; Wed, 09 Jan 2019 01:17:54 -0800 (PST) Received: from localhost.localdomain ([191.101.9.198]) by smtp.gmail.com with ESMTPSA id x10sm938160edb.58.2019.01.09.01.17.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Jan 2019 01:17:53 -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 V5 2/2] kobject: drop newline from msg string Date: Wed, 9 Jan 2019 04:17:48 -0500 Message-Id: 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. 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