Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp603914pxy; Wed, 21 Apr 2021 10:16:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQEHHKoxwYR3j7D+XcZU9+puLwNpxqZ2A+sw1OPZLPJxsV6OM5vv/2gacgc0HmOjS4zVQW X-Received: by 2002:a17:907:98e5:: with SMTP id ke5mr33789789ejc.438.1619025414248; Wed, 21 Apr 2021 10:16:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619025414; cv=none; d=google.com; s=arc-20160816; b=0qlDhQzHUi8oHCpiK8Ic4uNfbM0+HoDs1+H49cvaddsd7TbaSwimCxoTNYxC4DeX0R g00BWT5B3G92Yo/tTKOsdfuE5Akm+yr7GTM92rCx6PVVh0lsbZKMSIH6W/xg+lKwEGc9 ss/tZyWlEUgG46eZUUPs6dTGeUjqdFvgQipdXHinBHtHZVdgX4YV/Gyaqv7A9GUdYRFY tGtK3Ae2MynMmfw2jGD36mbGOjfWTdrwnYP1j7bBkJz1nJo+tn7AOGD8KyoX07JZ1p75 1+yJUaX9L+16bizlpMzUSORaqt3U/CiFAA4aPSntpBfXmAMYTrrcWCdgVEtR4AcEEr+h fB/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:subject:cc:to :from:date; bh=Ss4bQ9845k7T+LLESlS/mPKAhQ5AnQrgIXLhI76+GtI=; b=ww8kLEm2dzQQoefKuOaY+HDP8wmzUSRppOy2hvLQhDJ9+zlisGrvwl1eAdNVM46qOS 8itf6XGWLMIJ1yiYcVk/U6o+UJc8I0vY9sVZmObqsC8wyBS/huC4XBrNYHjkhPuEa10D 1m4XSONN3mHNeHuO9XEW7njHWZSPaToKLdFfPZ5nX4g/VvpwdTsKkPbWo/Zl41qPZUMr INDKHp5sEMb3uIpHg83e7GawRRWs/Qm59W1kiMuMOufuB3BmlYy/vq+DaMhoawnW0kc2 rPYpQUmjl5808A2E3PCHP51DLXybUfyf6nnOP/eb4INm1a0XVNaA7yCsauBqKFpxTuga ehMw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f13si2267823ejc.628.2021.04.21.10.16.30; Wed, 21 Apr 2021 10:16:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241493AbhDUN0C (ORCPT + 99 others); Wed, 21 Apr 2021 09:26:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235562AbhDUNZ5 (ORCPT ); Wed, 21 Apr 2021 09:25:57 -0400 Received: from angie.orcam.me.uk (angie.orcam.me.uk [IPv6:2001:4190:8020::4]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EFEFDC06174A; Wed, 21 Apr 2021 06:25:23 -0700 (PDT) Received: by angie.orcam.me.uk (Postfix, from userid 500) id C10E892009C; Wed, 21 Apr 2021 15:25:22 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id BC6F992009B; Wed, 21 Apr 2021 15:25:22 +0200 (CEST) Date: Wed, 21 Apr 2021 15:25:22 +0200 (CEST) From: "Maciej W. Rozycki" To: Arnd Bergmann , Thomas Bogendoerfer cc: Huacai Chen , Huacai Chen , Jiaxun Yang , linux-arch@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] lib/math/test_div64: Fix error message formatting Message-ID: User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Align the expected result with one actually produced for easier visual comparison; this has to take into account what the format specifiers will actually produce rather than the characters they consist of. E.g.: test_div64: ERROR: 10000000ab275080 / 00000009 => 01c71c71da20d00e,00000002 test_div64: ERROR: expected value => 0000000013045e47,00000001 (with a failure induced by setting bit #60 of the divident). Signed-off-by: Maciej W. Rozycki --- lib/math/test_div64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-3maxp-div64/lib/math/test_div64.c =================================================================== --- linux-3maxp-div64.orig/lib/math/test_div64.c +++ linux-3maxp-div64/lib/math/test_div64.c @@ -170,7 +170,7 @@ static inline bool test_div64_verify(u64 if (!test_div64_verify(quotient, remainder, i, j)) { \ pr_err("ERROR: %016llx / %08x => %016llx,%08x\n", \ divident, divisor, quotient, remainder); \ - pr_err("ERROR: expected value=> %016llx,%08x\n", \ + pr_err("ERROR: expected value => %016llx,%08x\n",\ test_div64_results[i][j].quotient, \ test_div64_results[i][j].remainder); \ result = false; \