diff mbox series

drm/tests/buddy: fix print format

Message ID 20240229095225.242795-2-matthew.auld@intel.com (mailing list archive)
State New, archived
Headers show
Series drm/tests/buddy: fix print format | expand

Commit Message

Matthew Auld Feb. 29, 2024, 9:52 a.m. UTC
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>
---
 drivers/gpu/drm/tests/drm_buddy_test.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Paneer Selvam, Arunpravin Feb. 29, 2024, 10:30 a.m. UTC | #1
Reviewed-by: Arunpravin Paneer Selvam <Arunpravin.PaneerSelvam@amd.com>

On 2/29/2024 3:22 PM, Matthew Auld wrote:
> 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>
> ---
>   drivers/gpu/drm/tests/drm_buddy_test.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/tests/drm_buddy_test.c b/drivers/gpu/drm/tests/drm_buddy_test.c
> index be2d9d7764be..484360c7e1f6 100644
> --- a/drivers/gpu/drm/tests/drm_buddy_test.c
> +++ b/drivers/gpu/drm/tests/drm_buddy_test.c
> @@ -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;
>   
>   		/*
Maxime Ripard March 7, 2024, 8:30 a.m. UTC | #2
On Thu, 29 Feb 2024 09:52:26 +0000, Matthew Auld wrote:
> 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
Matthew Auld March 7, 2024, 8:46 a.m. UTC | #3
On 07/03/2024 08:30, Maxime Ripard wrote:
> On Thu, 29 Feb 2024 09:52:26 +0000, Matthew Auld wrote:
>> 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.

> 
> Thanks!
> Maxime
>
diff mbox series

Patch

diff --git a/drivers/gpu/drm/tests/drm_buddy_test.c b/drivers/gpu/drm/tests/drm_buddy_test.c
index be2d9d7764be..484360c7e1f6 100644
--- a/drivers/gpu/drm/tests/drm_buddy_test.c
+++ b/drivers/gpu/drm/tests/drm_buddy_test.c
@@ -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;
 
 		/*