From: Rosen Penev Date: Tue, 9 Jul 2024 21:27:55 +0000 (-0700) Subject: xr_usb_serial_common: fix 32-bit compilation X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=8844e651cc9b91ddca24286915bb5ab192489acc;p=openwrt-packages.git xr_usb_serial_common: fix 32-bit compilation Format needs to be %zd, not %ld for size_t. Signed-off-by: Rosen Penev --- diff --git a/libs/xr_usb_serial_common/Makefile b/libs/xr_usb_serial_common/Makefile index c1ea1be7a..85348c21e 100644 --- a/libs/xr_usb_serial_common/Makefile +++ b/libs/xr_usb_serial_common/Makefile @@ -4,7 +4,7 @@ include $(INCLUDE_DIR)/kernel.mk PKG_NAME:=usb-serial-xr_usb_serial_common PKG_SOURCE_DATE:=2023-03-21 PKG_SOURCE_VERSION:=90ad530166f096347a5a57b6f9eb21c422a40fd9 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://github.com/kasbert/epsolar-tracer diff --git a/libs/xr_usb_serial_common/patches/0001-fix-kernel-6.6-builds.patch b/libs/xr_usb_serial_common/patches/0001-fix-kernel-6.6-builds.patch index 3389aeb92..beb3188a2 100644 --- a/libs/xr_usb_serial_common/patches/0001-fix-kernel-6.6-builds.patch +++ b/libs/xr_usb_serial_common/patches/0001-fix-kernel-6.6-builds.patch @@ -31,7 +31,7 @@ Signed-off-by: Adam Duskett return 0; +#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 2, 0) -+ dev_vdbg(&xr_usb_serial->data->dev, "%s - count %ld\n", __func__, count); ++ dev_vdbg(&xr_usb_serial->data->dev, "%s - count %zd\n", __func__, count); +#else dev_vdbg(&xr_usb_serial->data->dev, "%s - count %d\n", __func__, count); +#endif @@ -43,7 +43,7 @@ Signed-off-by: Adam Duskett count = (count > xr_usb_serial->writesize) ? xr_usb_serial->writesize : count; +#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 2, 0) -+ dev_vdbg(&xr_usb_serial->data->dev, "%s - write %ld\n", __func__, count); ++ dev_vdbg(&xr_usb_serial->data->dev, "%s - write %zd\n", __func__, count); +#else dev_vdbg(&xr_usb_serial->data->dev, "%s - write %d\n", __func__, count); +#endif