From 3f1a37d280983a4c311a41fefaa0d9eb5c90eecd Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Wed, 16 Nov 2022 16:12:03 +0100 Subject: try to fix 4 codeql warnings --- camlibs/ptp2/ptp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camlibs/ptp2/ptp.c b/camlibs/ptp2/ptp.c index 21a50f07a..d81de1a89 100644 --- a/camlibs/ptp2/ptp.c +++ b/camlibs/ptp2/ptp.c @@ -1721,7 +1721,7 @@ ptp_panasonic_getdevicepropertydesc (PTPParams *params, uint32_t propcode, uint1 if (size < headerLength * 4 + 2 * 4 + valuesize) return PTP_RC_GeneralError; *propertyValueListLength = dtoh32a( (data) + headerLength * 4 + 2 * 4 + valuesize); - ptp_debug(params, "header: %lu, code: 0x%lx, value: %lu, count: %lu", headerLength, propertyCode, *currentValue, *propertyValueListLength); + ptp_debug(params, "header: %u, code: 0x%x, value: %u, count: %u", headerLength, propertyCode, *currentValue, *propertyValueListLength); if (size < headerLength * 4 + 3 * 4 + valuesize + (*propertyValueListLength) * valuesize) { ptp_debug (params, "size %d vs expected size %d", size, headerLength * 4 + 3 * 4 + valuesize + (*propertyValueListLength) * valuesize); -- cgit v1.2.1