mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 19:14:30 +04:00
xr_usb_serial_common: fix 32-bit compilation
Format needs to be %zd, not %ld for size_t. Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
committed by
Daniel Golle
parent
d257ffe609
commit
8844e651cc
@@ -4,7 +4,7 @@ include $(INCLUDE_DIR)/kernel.mk
|
|||||||
PKG_NAME:=usb-serial-xr_usb_serial_common
|
PKG_NAME:=usb-serial-xr_usb_serial_common
|
||||||
PKG_SOURCE_DATE:=2023-03-21
|
PKG_SOURCE_DATE:=2023-03-21
|
||||||
PKG_SOURCE_VERSION:=90ad530166f096347a5a57b6f9eb21c422a40fd9
|
PKG_SOURCE_VERSION:=90ad530166f096347a5a57b6f9eb21c422a40fd9
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=3
|
||||||
|
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_URL:=https://github.com/kasbert/epsolar-tracer
|
PKG_SOURCE_URL:=https://github.com/kasbert/epsolar-tracer
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 2, 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
|
+#else
|
||||||
dev_vdbg(&xr_usb_serial->data->dev, "%s - count %d\n", __func__, count);
|
dev_vdbg(&xr_usb_serial->data->dev, "%s - count %d\n", __func__, count);
|
||||||
+#endif
|
+#endif
|
||||||
@@ -43,7 +43,7 @@ Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com>
|
|||||||
|
|
||||||
count = (count > xr_usb_serial->writesize) ? xr_usb_serial->writesize : count;
|
count = (count > xr_usb_serial->writesize) ? xr_usb_serial->writesize : count;
|
||||||
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 2, 0)
|
+#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
|
+#else
|
||||||
dev_vdbg(&xr_usb_serial->data->dev, "%s - write %d\n", __func__, count);
|
dev_vdbg(&xr_usb_serial->data->dev, "%s - write %d\n", __func__, count);
|
||||||
+#endif
|
+#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user