From: <mar...@us...> - 2007-06-24 20:16:47
|
Revision: 10401 http://svn.sourceforge.net/gphoto/?rev=10401&view=rev Author: marcusmeissner Date: 2007-06-24 13:16:46 -0700 (Sun, 24 Jun 2007) Log Message: ----------- more debuggin Modified Paths: -------------- trunk/libgphoto2/camlibs/ptp2/ptp-pack.c Modified: trunk/libgphoto2/camlibs/ptp2/ptp-pack.c =================================================================== --- trunk/libgphoto2/camlibs/ptp2/ptp-pack.c 2007-06-24 20:14:37 UTC (rev 10400) +++ trunk/libgphoto2/camlibs/ptp2/ptp-pack.c 2007-06-24 20:16:46 UTC (rev 10401) @@ -1108,6 +1108,10 @@ (memcmp(params->canon_props[j].data,data,size-PTP_ece_Prop_Data))) { params->canon_props[j].data = realloc(params->canon_props[j].data,size-PTP_ece_Prop_Data); memcpy (params->canon_props[j].data,data,size-PTP_ece_Prop_Data); + fprintf (stderr, "replaced data (index %d)\n", j); + for (k=0;k<size-PTP_ece_Prop_Data;k++) + fprintf (stderr, "%02x", data[k]); + fprintf (stderr, "\n"); } } else { if (j) @@ -1120,9 +1124,8 @@ params->canon_props[j].data = malloc(size-PTP_ece_Prop_Data); memcpy(params->canon_props[j].data, data, size-PTP_ece_Prop_Data); fprintf (stderr, "Data (index %d)\n", j); - for (k=0;k<size-PTP_ece_Prop_Data;k++) { + for (k=0;k<size-PTP_ece_Prop_Data;k++) fprintf (stderr, "%02x", data[k]); - } fprintf (stderr, "\n"); params->nrofcanon_props = j+1; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |