drm/tests/buddy: fix print format
authorMatthew Auld <matthew.auld@intel.com>
Thu, 29 Feb 2024 09:52:26 +0000 (09:52 +0000)
committerMaxime Ripard <mripard@kernel.org>
Thu, 7 Mar 2024 08:28:06 +0000 (09:28 +0100)
This will report a build warning once we have: 806cb2270237 ("kunit:
Annotate _MSG assertion variants with gnu printf specifiers").

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Fixes: c70703320e55 ("drm/tests/drm_buddy: add alloc_range_bias test")
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Reviewed-by: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>
Link: https://lore.kernel.org/r/20240229095225.242795-2-matthew.auld@intel.com
Signed-off-by: Maxime Ripard <mripard@kernel.org>
drivers/gpu/drm/tests/drm_buddy_test.c

index 1008d5b9d61e4409c697fc8ff9e4127833d92007..9ef5b17ae3f6d3ee83bd8da7b046760143228bca 100644 (file)
@@ -189,7 +189,7 @@ static void drm_test_buddy_alloc_range_bias(struct kunit *test)
                                                              &allocated,
                                                              DRM_BUDDY_RANGE_ALLOCATION),
                                       "buddy_alloc failed with bias(%x-%x), size=%u, ps=%u\n",
-                                      bias_start, bias_end, size);
+                                      bias_start, bias_end, size, ps);
                bias_rem -= size;
 
                /*