Re: [Intel-gfx] [PATCH] drm/i915/pxp: use correct format string for size_t

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2023-06-01 at 23:36 +0200, Arnd Bergmann wrote:
> From: Arnd Bergmann <arnd@xxxxxxxx>
> 
> While 'unsigned long' needs the %ld format string, size_t needs the %z
> modifier:

alan:snip


> +++ b/drivers/gpu/drm/i915/pxp/intel_pxp_gsccs.c
> @@ -143,7 +143,7 @@ gsccs_send_message(struct intel_pxp *pxp,
>  
>  	reply_size = header->message_size - sizeof(*header);
>  	if (reply_size > msg_out_size_max) {
> -		drm_warn(&i915->drm, "caller with insufficient PXP reply size %u (%ld)\n",
> +		drm_warn(&i915->drm, "caller with insufficient PXP reply size %u (%zd)\n",
>  			 reply_size, msg_out_size_max);
>  		reply_size = msg_out_size_max;
>  	}
Thanks Arnd for catching this, although i believe Nathan sumbmitted a patch for the same fix yesterday and received an RB from Andi.




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux