Add error log for validation failure 55/116655/1 accepted/tizen/3.0/common/20170320.130329 accepted/tizen/3.0/ivi/20170320.080311 accepted/tizen/3.0/mobile/20170320.074637 accepted/tizen/3.0/tv/20170320.075745 accepted/tizen/3.0/wearable/20170320.080100 submit/tizen_3.0/20170317.034449
authorJeongmo Yang <jm80.yang@samsung.com>
Mon, 27 Feb 2017 11:11:02 +0000 (20:11 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Mon, 27 Feb 2017 11:33:22 +0000 (20:33 +0900)
[Version] 0.2.100
[Profile] Common
[Issue Type] Update
[Dependency module] N/A
[Test] [M(T) - Boot=(OK), sdb=(OK), Home=(OK), Touch=(OK), Version=tizen-3.0-mobile_20170227.2]

Change-Id: Ia7912d9bdc3739e7fa3fe0605501010cbaa7f7b0
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
mm_attrs.c
mm_attrs_private.c
packaging/libmm-common.spec

index fefd2d9..a0353cd 100644 (file)
@@ -118,6 +118,9 @@ int mm_attrs_get_index(MMHandleType h, const char *attrname, int *index)
                        return MM_ERROR_NONE;
                }
        }
+
+       debug_error("failed to get index for [%s]", attrname);
+
        return MM_ERROR_COMMON_OUT_OF_ARRAY;
 }
 
index f239b05..e79907e 100644 (file)
@@ -347,7 +347,9 @@ bool mmf_attribute_validate_int(mmf_attribute_t *item, int val)
                if (val < item->value_spec.spec.int_spec.range.min ||
                                val > item->value_spec.spec.int_spec.range.max) {
                        valid = false;
-                       //mmf_debug(MMF_DEBUG_LOG, "[mmf_attribute:%s] out of range\n", item->name);
+                       debug_error("[mmf_attribute:%s] out of range[min %d, max %d, set %d]",
+                               item->name, item->value_spec.spec.int_spec.range.min,
+                               item->value_spec.spec.int_spec.range.max, val);
                }
                break;
        case MMF_VALUE_SPEC_INT_ARRAY:
@@ -359,7 +361,11 @@ bool mmf_attribute_validate_int(mmf_attribute_t *item, int val)
                        }
                }
                if (!valid) {
-                       //mmf_debug(MMF_DEBUG_LOG, "[mmf_attribute:%s] out of array\n", item->name);
+                       debug_error("[mmf_attribute:%s] out of array, set %d", item->name, val);
+                       for (i = 0; i < item->value_spec.spec.int_spec.array.count; i++) {
+                               debug_error("array[index %d] value [%d]",
+                                       i, item->value_spec.spec.int_spec.array.array[i]);
+                       }
                }
                break;
        default:
index 7bb459b..2d96969 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-common
 Summary:    Multimedia Framework Common Lib
-Version:    0.2.99
+Version:    0.2.100
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0