diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2022-11-16 16:12:03 +0100 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2022-11-16 16:12:34 +0100 |
commit | 3f1a37d280983a4c311a41fefaa0d9eb5c90eecd (patch) | |
tree | f29ccedcf420751244e6775ad8dc53cc14b5e9a5 /camlibs | |
parent | 8462af5e3b06ee8c322fe6c66155966906e475b0 (diff) | |
download | libgphoto2-3f1a37d280983a4c311a41fefaa0d9eb5c90eecd.tar.gz |
try to fix 4 codeql warnings
Diffstat (limited to 'camlibs')
-rw-r--r-- | camlibs/ptp2/ptp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |