Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2360957lqp; Sun, 24 Mar 2024 15:43:43 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVzgrAXd2p3A1HH9D7lAMBp2QMX/ao2SryiJ+PcMjEmMrEbQgBTeDUDplgQQTz8m28ZJtEYMQ3cGevffgXI8Fw3d+P6A1A/kyLEi5okYQ== X-Google-Smtp-Source: AGHT+IGoMzny+V7+SCaUB8HIMOePmQDh3B6MHUXejHpD7eqpw/GpIGzVJAk0FRjJT5BiATYkEYVN X-Received: by 2002:a50:d70a:0:b0:568:c6fd:4f50 with SMTP id t10-20020a50d70a000000b00568c6fd4f50mr4366401edi.7.1711320222802; Sun, 24 Mar 2024 15:43:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711320222; cv=pass; d=google.com; s=arc-20160816; b=FklHIErtS8PHnCf16sUSmy+ov0yI1T+1EX1fLAQzU8xjqVZqG8JjF0tGIDjrLOPKmz pKM/x9tM2yHmY/xfAuE9IcciJqCLBx3GC1YwWhPms7NKe4zUP6OwAnbfgQ5jX6wTGyLI sT1IKZiqRXijLluFTgxd8sOsd/s7mS53m58oy9v8JHYsZYdQsBinEXmI0VpFeB14bCdj PB7Yo/7thMmdPykAV9p/kLZS0iJGBEyx0mUTAsUS5AZNmAg9/WWf3t5ztg2LNzN84CPb X+V5dEsCL4jbqy/YDfRYW/FwMVJyuTEEThTx919zE+jdx6T/oQH6cp31N2OTItpFk5T8 O6wA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=YihdvArd+AkDXfrMXIj5yI+zw633PnA5mbx4CeyhdHs=; fh=BRzYOX/D3afy8X+illd1NXysVjy9i1B2DRBM2SRh9N4=; b=luJfWEEFe9FyAyjGP6EVEVbq3xpVAErSQdl2vPPw8efl9a5A8nZX8AXQ3wBABKCp5k tPfkyKKc6l06n+S/U0rXIuVK3LTBNENhCGv6iTmkndXqlj6979GoRh8Hixdm6hjG3MFF KFzlmqWmtWtJa7TjS1FSObnv0Ho1HWvCPf7qdDxuawFdlXPYRrBJ50fj5bC/XlSErSel QRhX/D6iN9cgFkgbOXr7LoYxxdP9BWAbJRUAzmC0JLtrmq2OJSbx9jGqqZoGK1ICscV2 dmYlOzfFbIJXxQaL9hmFS0Ool5iW4cFEj9bYzvdxJmRT2S+lOR9ypEeNBt5IQZKlXz1D xUtA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cK2DYiwY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-112921-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112921-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id eb9-20020a0564020d0900b0056bb6b87559si2085021edb.216.2024.03.24.15.43.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 24 Mar 2024 15:43:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-112921-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=cK2DYiwY; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-112921-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-112921-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 5EC5D1F211EB for ; Sun, 24 Mar 2024 22:43:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4F2436F505; Sun, 24 Mar 2024 22:35:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="cK2DYiwY" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 767146FB80; Sun, 24 Mar 2024 22:35:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711319733; cv=none; b=X6ZIGT4pz3dFVf4VEiQPhr3X+1VP6UJ3rooXRQtyxRDY5rTd8cE+Z3YlaPgupRzxKym2qQeUnm+ybZ35BaxFCdDZsBzJboCmUTFhfS6uBPIlVjERudIZnSljvX9LYC8DAV+th6Sd8AIMsc9oIJHJchUG4KypKmknyIdPHrJQVAM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711319733; c=relaxed/simple; bh=UObW9I6bfIlw9H+IP5DBPRyzBWISzkmfqE7NiZ/xRH8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Zhg34yLr1VzvlZwoYsPnKh1FW0LK9Eckp1zB3wn/a0bE1PBbkqzPcTOxe4UNOH3gncfZevv6LbFfqZMrdcK4BgSe443jKbqB9aYpFsXW3ZVRgdF4V9BcNtdbyCjIUkD91mQo1ttJrNPCkxCJo8sJCrabpliU7kfBZ7p3JL8BUj4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=cK2DYiwY; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7125BC43394; Sun, 24 Mar 2024 22:35:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1711319733; bh=UObW9I6bfIlw9H+IP5DBPRyzBWISzkmfqE7NiZ/xRH8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cK2DYiwY2bIsFCTbpnEMYc2LG5Lz4x0rGNy75TfnP2YGiBhownskLDnb4K0wRd76b 7cDLCz5FP5dD5Oj8daMUYocV9ND9Li0Jr+I/0vM5oIEEKdwcuYL8DT2T0LAGJAKo84 hdRTTe33Cx/Zi5JgsDWrf5HNLGry9cOlcfqb9vrGqnOoE2iUqSwkFBvp1zSUfBMQ/m TeB4CrN3Hjhd2FSooLPQcMU4iHawrn3F20MVUnkwraMbLHdOB1jXwAre5K1aXVLY6E a3h3MFpoxPuXEnyXsIQcGAXC/0HG4Xg0FdQLtQQm3AK757ieleNJl4zf5/miv47tds r5FSdyOlPcSZQ== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: David Gow , Guenter Roeck , Lucas De Marchi , =?UTF-8?q?Thomas=20Hellstr=C3=B6m?= , Shuah Khan , Sasha Levin Subject: [PATCH 6.8 034/715] drm/xe/tests: Fix printf format specifiers in xe_migrate test Date: Sun, 24 Mar 2024 18:23:33 -0400 Message-ID: <20240324223455.1342824-35-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240324223455.1342824-1-sashal@kernel.org> References: <20240324223455.1342824-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit From: David Gow [ Upstream commit 689a930b93c5c20294df5da0407df361c5412eac ] KUNIT_FAIL() is used to fail the xe_migrate test when an error occurs. However, there's a mismatch in the format specifier: '%li' is used to log 'err', which is an 'int'. Use '%i' instead of '%li', and for the case where we're printing an error pointer, just use '%pe', instead of extracting the error code manually with PTR_ERR(). (This also results in a nicer output when the error code is known.) Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs") Signed-off-by: David Gow Tested-by: Guenter Roeck Reviewed-by: Lucas De Marchi Acked-by: Thomas Hellström Signed-off-by: Shuah Khan Signed-off-by: Sasha Levin --- drivers/gpu/drm/xe/tests/xe_migrate.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/xe/tests/xe_migrate.c b/drivers/gpu/drm/xe/tests/xe_migrate.c index a6523df0f1d39..c347e2c29f81f 100644 --- a/drivers/gpu/drm/xe/tests/xe_migrate.c +++ b/drivers/gpu/drm/xe/tests/xe_migrate.c @@ -114,21 +114,21 @@ static void test_copy(struct xe_migrate *m, struct xe_bo *bo, region | XE_BO_NEEDS_CPU_ACCESS); if (IS_ERR(remote)) { - KUNIT_FAIL(test, "Failed to allocate remote bo for %s: %li\n", - str, PTR_ERR(remote)); + KUNIT_FAIL(test, "Failed to allocate remote bo for %s: %pe\n", + str, remote); return; } err = xe_bo_validate(remote, NULL, false); if (err) { - KUNIT_FAIL(test, "Failed to validate system bo for %s: %li\n", + KUNIT_FAIL(test, "Failed to validate system bo for %s: %i\n", str, err); goto out_unlock; } err = xe_bo_vmap(remote); if (err) { - KUNIT_FAIL(test, "Failed to vmap system bo for %s: %li\n", + KUNIT_FAIL(test, "Failed to vmap system bo for %s: %i\n", str, err); goto out_unlock; } -- 2.43.0