From 617f6f4e81692d293bfafb4e7d47f41435b09fcc Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Sat, 5 Mar 2016 11:23:56 +0100 Subject: [PATCH] log incorrect type in int8 table matcher --- camlibs/ptp2/config.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/camlibs/ptp2/config.c b/camlibs/ptp2/config.c index de0389a57..e8095d3e4 100644 --- a/camlibs/ptp2/config.c +++ b/camlibs/ptp2/config.c @@ -935,8 +935,10 @@ _get_Generic8Table(CONFIG_GET_ARGS, struct deviceproptableu8* tbl, int tblsize) int isset = FALSE, isset2 = FALSE; if (dpd->FormFlag & PTP_DPFF_Enumeration) { - if ((dpd->DataType != PTP_DTC_UINT8) && (dpd->DataType != PTP_DTC_INT8)) - return (GP_ERROR); + if ((dpd->DataType != PTP_DTC_UINT8) && (dpd->DataType != PTP_DTC_INT8)) { + GP_LOG_D ("no int8 prop in 8bit table code"); + return GP_ERROR; + } gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); gp_widget_set_name (*widget, menu->name); for (i = 0; iFORM.Enum.NumberOfValues; i++) { @@ -972,8 +974,10 @@ _get_Generic8Table(CONFIG_GET_ARGS, struct deviceproptableu8* tbl, int tblsize) return (GP_OK); } if (dpd->FormFlag & PTP_DPFF_Range) { - if (dpd->DataType != PTP_DTC_UINT8) - return (GP_ERROR); + if (dpd->DataType != PTP_DTC_UINT8) { + GP_LOG_D ("no int8 prop in 8bit table code"); + return GP_ERROR; + } gp_widget_new (GP_WIDGET_RADIO, _(menu->label), widget); gp_widget_set_name (*widget, menu->name); for ( i = dpd->FORM.Range.MinimumValue.u8;