From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailtransmit04.runbox.com (mailtransmit04.runbox.com [185.226.149.37]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C851239B965 for ; Mon, 2 Mar 2026 10:18:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.226.149.37 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772446732; cv=none; b=LZwQM4SiJ/IgXkUbSPPCVLi28IaPwFGMmRtBstpx+tT6G+Ur+6Q3LIrGpHzv9W1yIt8ma4oOrBOXBpSrAjRhl0w8MhPzpOs5PELpP5Zjkr3owxOOmvw+0mmdhMMpouj93ogE1SoQ8s51/onhnZzdjXVk7fh6hGy5tc2nEz/dWTA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772446732; c=relaxed/simple; bh=XVgW8JsucUeHuoAk4t1KnY7Y0DHm3XaX1T6BD7BpQqI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=BAUtx+FEuhQyLgV+SK1VElsiZe7Rncm7aAdSs4HOPEbGATct+4V7IhKLeiOhX+n2dMsCO/CDCLUb4RAf55KNasO6cq/j2RYJtpopY1BVwA3OSVbHc0yo+ZaEAbczuySx3qabnkDQNLRI9Hmc2DuJo57O6yVZ5/ElJieYjulLtu0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=runbox.com; dkim=pass (2048-bit key) header.d=runbox.com header.i=@runbox.com header.b=KHHxBD5d; arc=none smtp.client-ip=185.226.149.37 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=runbox.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=runbox.com header.i=@runbox.com header.b="KHHxBD5d" Received: from mailtransmit03.runbox ([10.9.9.163] helo=aibo.runbox.com) by mailtransmit04.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1vx0MT-00382P-6P; Mon, 02 Mar 2026 11:18:49 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=selector2; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To :Message-Id:Date:Subject:Cc:To:From; bh=85ZSTyhj/oNlbtSkQtp3rSGEwfg9LAyZv6ZK6KV1JQ4=; b=KHHxBD5dM7t6PZ8p9Rg5bbI762 j25QZy3wqRalFM2V+bVXIYzJoT4QcSDAKrT6sXl1S9ceJjd6/cajuYB8NjnQ2rvr0KQ22aJ5NvzPX 3QbWA74tY59YF9C4NJeSam6qon/mQIJTuQAwvJronK2gn68q5AtmWeoX0UOTtqUVaWjj2YuSjVskh xBEyNG5Bn+frs+smCXW0cqMdqbxso71uqu5FCx1CuLx1m6d0tiIREuIdcK1LmZzlfTWZZcrUXxxWm 7bzQBEOGPlr51/TGfVUnFbdCNHe7K4jVDv8dDg6CSbUjWB28nepPUfHT1zRnllu5kZee0Q0BVggGH W/WZJxZg==; Received: from [10.9.9.72] (helo=submission01.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1vx0MS-0002yF-Sm; Mon, 02 Mar 2026 11:18:49 +0100 Received: by submission01.runbox with esmtpsa [Authenticated ID (1493616)] (TLS1.2:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.93) id 1vx0MA-006y7o-FH; Mon, 02 Mar 2026 11:18:30 +0100 From: david.laight.linux@gmail.com To: Willy Tarreau , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , linux-kernel@vger.kernel.org, Cheng Li Cc: David Laight Subject: [PATCH 08/23] selftests/nolibc: Rename w to written in expect_vfprintf() Date: Mon, 2 Mar 2026 10:18:00 +0000 Message-Id: <20260302101815.3043-9-david.laight.linux@gmail.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20260302101815.3043-1-david.laight.linux@gmail.com> References: <20260302101815.3043-1-david.laight.linux@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: David Laight Single character variable names don't make code easy to read. Rename 'w' (used for the return value from snprintf()) 'written'. Signed-off-by: David Laight --- V4: Split out from patch 4. tools/testing/selftests/nolibc/nolibc-test.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/testing/selftests/nolibc/nolibc-test.c b/tools/testing/selftests/nolibc/nolibc-test.c index 51390b709af1..9ebebe4ff253 100644 --- a/tools/testing/selftests/nolibc/nolibc-test.c +++ b/tools/testing/selftests/nolibc/nolibc-test.c @@ -1669,7 +1669,7 @@ static int expect_vfprintf(int llen, const char *expected, const char *fmt, ...) char buf[VFPRINTF_LEN + 80]; unsigned int cmp_len; va_list args; - ssize_t w, expected_len; + ssize_t written, expected_len; /* Fill and terminate buf[] to check for overlong/absent writes */ memset(buf, 0xa5, sizeof(buf) - 1); @@ -1677,7 +1677,7 @@ static int expect_vfprintf(int llen, const char *expected, const char *fmt, ...) va_start(args, fmt); /* Limit buffer length to test truncation */ - w = vsnprintf(buf, VFPRINTF_LEN + 1, fmt, args); + written = vsnprintf(buf, VFPRINTF_LEN + 1, fmt, args); va_end(args); llen += printf(" \"%s\"", buf); @@ -1700,8 +1700,8 @@ static int expect_vfprintf(int llen, const char *expected, const char *fmt, ...) return 1; } - if (w != expected_len) { - llen += printf(" written(%d) != %d", (int)w, (int)expected_len); + if (written != expected_len) { + llen += printf(" written(%d) != %d", (int)written, (int)expected_len); result(llen, FAIL); return 1; } -- 2.39.5