drm/xe: tests: fix error message in xe_migrate_sanity_test()
authorDan Carpenter <error27@gmail.com>
Thu, 13 Aug 2026 07:09:47 +0000 (10:09 +0300)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Mon, 17 Aug 2026 19:45:21 +0000 (15:45 -0400)
This is supposed to print the error code but there is a copy and
paste bug so it prints "bo" instead of "err".

Fixes: dd08ebf6c352 ("drm/xe: Introduce a new DRM driver for Intel GPUs")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Link: https://patch.msgid.link/an1tu0z3T-qX1ogn@stanley.mountain
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
(cherry picked from commit 28a4198c52a1468fc1b620a9837557ea1dc1766d)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/tests/xe_migrate.c

index 3c1be80..f10d951 100644 (file)
@@ -198,8 +198,7 @@ static void xe_migrate_sanity_test(struct xe_migrate *m, struct kunit *test,
 
        err = xe_bo_vmap(bo);
        if (err) {
-               KUNIT_FAIL(test, "Failed to vmap our pagetables: %li\n",
-                          PTR_ERR(bo));
+               KUNIT_FAIL(test, "Failed to vmap our pagetables: %d\n", err);
                return;
        }