summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2020-02-19 07:25:19 +0100
committerMarcus Meissner <marcus@jet.franken.de>2020-02-19 07:41:19 +0100
commite36a1617a14634d5dd8f339c2d9b9b97813d4a0f (patch)
tree187f5432171a4419e383aeb5eafd1fc865ac02ef
parent2afff46f5aef8d03d3be1395a1a4a01005bb6853 (diff)
downloadlibgphoto2-e36a1617a14634d5dd8f339c2d9b9b97813d4a0f.tar.gz
log the ptp opcode + params just to be sure we passed in the right values
-rw-r--r--camlibs/ptp2/config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/camlibs/ptp2/config.c b/camlibs/ptp2/config.c
index fbdaf77b0..9c4b6b25f 100644
--- a/camlibs/ptp2/config.c
+++ b/camlibs/ptp2/config.c
@@ -6696,11 +6696,13 @@ _put_Generic_OPCode(CONFIG_PUT_ARGS)
if (!sscanf(val,"0x%x", &opcode))
return GP_ERROR_BAD_PARAMETERS;
+ GP_LOG_D ("opcode 0x%x", opcode);
nparams = 0; x = val;
while ((x = strchr(x,',')) && (nparams<5)) {
x++;
if (!sscanf(x,"0x%x", &xparams[nparams]))
return GP_ERROR_BAD_PARAMETERS;
+ GP_LOG_D ("param %d 0x%x", nparams, xparams[nparams]);
nparams++;
}
ptp.Code = opcode;