Minor change - make log info for format options more specific.
authorZiran Sun <ziran.sun@samsung.com>
Fri, 9 Dec 2016 15:00:45 +0000 (15:00 +0000)
committerZiran Sun <ziran.sun@samsung.com>
Fri, 16 Dec 2016 11:23:13 +0000 (11:23 +0000)
Change-Id: Ib3e524d452e5b6df2255820fcd8f06c61805c70a
Signed-off-by: Ziran Sun <ziran.sun@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/15367
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
resource/csdk/connectivity/src/caprotocolmessage.c

index 3678841..d594373 100644 (file)
@@ -560,18 +560,18 @@ CAResult_t CAParseHeadOption(uint32_t code, const CAInfo_t *info, coap_list_t **
                         (char *)buf);
                 break;
             default:
-                OIC_LOG_V(ERROR, TAG, "format option:[%d] not supported", info->payloadFormat);
+                OIC_LOG_V(ERROR, TAG, "Content format option:[%d] not supported", info->payloadFormat);
         }
         if (!node)
         {
-            OIC_LOG(ERROR, TAG, "format option not created");
+            OIC_LOG(ERROR, TAG, "Content format option not created");
             return CA_STATUS_INVALID_PARAM;
         }
         int ret = coap_insert(optlist, node, CAOrderOpts);
         if (ret <= 0)
         {
             coap_delete(node);
-            OIC_LOG(ERROR, TAG, "format option not inserted in header");
+            OIC_LOG(ERROR, TAG, "Content format option not inserted in header");
             return CA_STATUS_INVALID_PARAM;
         }
     }
@@ -588,18 +588,18 @@ CAResult_t CAParseHeadOption(uint32_t code, const CAInfo_t *info, coap_list_t **
                         (char *)buf);
                 break;
             default:
-                OIC_LOG_V(ERROR, TAG, "format option:[%d] not supported", info->acceptFormat);
+                OIC_LOG_V(ERROR, TAG, "Accept format option:[%d] not supported", info->acceptFormat);
         }
         if (!node)
         {
-            OIC_LOG(ERROR, TAG, "format option not created");
+            OIC_LOG(ERROR, TAG, "Accept format option not created");
             return CA_STATUS_INVALID_PARAM;
         }
         int ret = coap_insert(optlist, node, CAOrderOpts);
         if (ret <= 0)
         {
             coap_delete(node);
-            OIC_LOG(ERROR, TAG, "format option not inserted in header");
+            OIC_LOG(ERROR, TAG, "Accept format option not inserted in header");
             return CA_STATUS_INVALID_PARAM;
         }
     }