Skip to contentSkip to conversation

drm/tests/buddy: fix print format

PATCH Applied Matthew Auld 3 participants 4 messages Feb 29, 2024 – Mar 7, 2024

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/tests/buddy: fix print format

This will report a build warning once we have: 806cb2270237 ("kunit:
Annotate _MSG assertion variants with gnu printf specifiers").

Fixes c70703320e55 ("drm/tests/drm_buddy: add alloc_range_bias test")
Cc Arunpravin Paneer Selvam <[email protected]>
Cc Christian König <[email protected]>
---
 drivers/gpu/drm/tests/drm_buddy_test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/tests/drm_buddy_test.c +1 -1
index be2d9d7764be..484360c7e1f6 100644
@@ -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;
 
 		/*
Signature · 1 line
2.43.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 25 lines · Matthew Auld

This will report a build warning once we have: 806cb2270237 ("kunit:
Annotate _MSG assertion variants with gnu printf specifiers").

Fixes c70703320e55 ("drm/tests/drm_buddy: add alloc_range_bias test")
Cc Arunpravin Paneer Selvam<[email protected]>
Cc Christian König<[email protected]>
---
  drivers/gpu/drm/tests/drm_buddy_test.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/tests/drm_buddy_test.c +1 -1
index be2d9d7764be..484360c7e1f6 100644
@@ -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;
 
  		/*
maintainer Applied
#2 lore raw
In reply to Matthew Auld
Quoted 4 lines · Matthew Auld

This will report a build warning once we have: 806cb2270237 ("kunit:
Annotate _MSG assertion variants with gnu printf specifiers").

Applied to drm/drm-misc (drm-misc-fixes).

Thanks!
Maxime

#3 lore raw
Quoted 7 lines · Maxime Ripard
Quoted 4 lines · Matthew Auld

This will report a build warning once we have: 806cb2270237 ("kunit:
Annotate _MSG assertion variants with gnu printf specifiers").

Applied to drm/drm-misc (drm-misc-fixes).

Thanks.

Quoted 4 lines

Thanks!
Maxime