Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp735446ybc; Sat, 16 Nov 2019 07:47:51 -0800 (PST) X-Google-Smtp-Source: APXvYqx+p0ayT6WhrjUJhIq/+3v4Cd/dsBKCf1603B6vLsXN6kzdzcw1Q+SNgSNIqQbSMV551DPr X-Received: by 2002:a17:906:fad1:: with SMTP id lu17mr10751074ejb.24.1573919271233; Sat, 16 Nov 2019 07:47:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573919271; cv=none; d=google.com; s=arc-20160816; b=j0C4BwuUHnfK70lr8SBJPhkr82RndvAQylZvFl9vZVHcMeawh38eLqA0inXTf0SGen 5NInzLPObFmjQgdi72+heKz3i3Oy2DcTpPCy6qKCHMmT4iShJqLSGcoNP/RtW2xV57tR qaYYs3Zf70udsu3zIyNo88rIeSshhvNRuifA8IOKNs7osZNvvxKImI/GfB7dgUkOGkJZ Yv/AVDMMrdXf9O0DL6YIyNhFCsZ0X3VGeURfrtLrfUVsAzGULzJaov6/gZYy1IKBfkBh 31mRccJxj5Zy2ORCSrIQq4/cgHCr+dSmEvkkAsElze7um2L8al3ea6yi4/WtESwe9Ka7 NCHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=5mKZx69lVwUoplO+flXeaxg4DLHkoeNWbBGQA1+jnd4=; b=zBlqGWEWbD1Z1mtBpt2MxytARtLmKN8j+dZiio4dSmDCJ+6pN9F82zoKZ/xofOGx4k yNL2333vdy+MGCMBmX7hUMXdE5eck0WUHzJSIU6eN5tKDzNV5axmUtJ7XkpD04PXLWUq XjjD7S2C/O8RJlTKyZUgLi++Fad/9/UcQPI7AuPCZ6s/HLj0N9xMW5V3k62bbYuPwG6a Fpv8FBTz0sy90KN6CZ9MvwcwJJGPr/6YjBa8FxTEi82hkn/9ZlbJmNS4bIh9tH08pOWT GLr4lyEXvBBoRbBsKXcXaybKE9g5/QjBELX1fE67Gxs0Cl7SXpBLvle3daQQpboeAtNr DmkQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ycKyvITv; 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=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 n15si7466823ejj.68.2019.11.16.07.47.26; Sat, 16 Nov 2019 07:47:51 -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=@kernel.org header.s=default header.b=ycKyvITv; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728795AbfKPPnk (ORCPT + 99 others); Sat, 16 Nov 2019 10:43:40 -0500 Received: from mail.kernel.org ([198.145.29.99]:47724 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728789AbfKPPni (ORCPT ); Sat, 16 Nov 2019 10:43:38 -0500 Received: from sasha-vm.mshome.net (unknown [50.234.116.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 7484720729; Sat, 16 Nov 2019 15:43:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1573919017; bh=ArEb2f18QmJygKaaZnogCTVHbEhcpUrues3qVydbb7o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ycKyvITvVNx/zDBeRhONbJWhg5P9wKivGiWnUmiGN3iAdJUJNpl4IWdsaWFMMm1n5 9AUBnaQSqV2zkZi/jwUu/KJr2M+Vip7Dvz82qm8nVFfUcn/i2JlLomNiPlu8fEErsu OSp9yv1y18pxvQZvSpRXOKhsWj895rCA+xAKPQVQ= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Jerry Hoemann , Shuah Khan , Sasha Levin , linux-kselftest@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 118/237] selftests: watchdog: Fix error message. Date: Sat, 16 Nov 2019 10:39:13 -0500 Message-Id: <20191116154113.7417-118-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191116154113.7417-1-sashal@kernel.org> References: <20191116154113.7417-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jerry Hoemann [ Upstream commit 04d5e4bd37516ad60854eb74592c7dbddd75d277 ] Printf's say errno but print the string version of error. Make consistent. Signed-off-by: Jerry Hoemann Signed-off-by: Shuah Khan (Samsung OSG) Signed-off-by: Sasha Levin --- tools/testing/selftests/watchdog/watchdog-test.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/testing/selftests/watchdog/watchdog-test.c b/tools/testing/selftests/watchdog/watchdog-test.c index e029e2017280f..f1c6e025cbe54 100644 --- a/tools/testing/selftests/watchdog/watchdog-test.c +++ b/tools/testing/selftests/watchdog/watchdog-test.c @@ -109,7 +109,7 @@ int main(int argc, char *argv[]) printf("Last boot is caused by: %s.\n", (flags != 0) ? "Watchdog" : "Power-On-Reset"); else - printf("WDIOC_GETBOOTSTATUS errno '%s'\n", strerror(errno)); + printf("WDIOC_GETBOOTSTATUS error '%s'\n", strerror(errno)); break; case 'd': flags = WDIOS_DISABLECARD; @@ -117,7 +117,7 @@ int main(int argc, char *argv[]) if (!ret) printf("Watchdog card disabled.\n"); else - printf("WDIOS_DISABLECARD errno '%s'\n", strerror(errno)); + printf("WDIOS_DISABLECARD error '%s'\n", strerror(errno)); break; case 'e': flags = WDIOS_ENABLECARD; @@ -125,7 +125,7 @@ int main(int argc, char *argv[]) if (!ret) printf("Watchdog card enabled.\n"); else - printf("WDIOS_ENABLECARD errno '%s'\n", strerror(errno)); + printf("WDIOS_ENABLECARD error '%s'\n", strerror(errno)); break; case 'p': ping_rate = strtoul(optarg, NULL, 0); @@ -139,7 +139,7 @@ int main(int argc, char *argv[]) if (!ret) printf("Watchdog timeout set to %u seconds.\n", flags); else - printf("WDIOC_SETTIMEOUT errno '%s'\n", strerror(errno)); + printf("WDIOC_SETTIMEOUT error '%s'\n", strerror(errno)); break; default: usage(argv[0]); -- 2.20.1