summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIbrahim Esmat <iesmat@microsoft.com>2017-05-24 17:32:20 -0700
committerDan Mihai <Daniel.Mihai@microsoft.com>2017-05-25 23:26:58 +0000
commit538fc1fc7c43a7e0c4953e7288a04f1e0ca8fe3b (patch)
treee365982c6cc9ff8f65daace07b3d4fd066b97e5a
parentf56bbf02c9d388a6d36b1dc9dc2c1b96dfa06cd8 (diff)
downloadiotivity-538fc1fc7c43a7e0c4953e7288a04f1e0ca8fe3b.tar.gz
iotivity-538fc1fc7c43a7e0c4953e7288a04f1e0ca8fe3b.tar.bz2
iotivity-538fc1fc7c43a7e0c4953e7288a04f1e0ca8fe3b.zip
[IOT-2357] Platform error messages
Update expected WARNING/ERROR messages to be INFO when trying to get the local application data path. Change-Id: I434f12f0183261e38cc14d6b37a05618690e736d Signed-off-by: Ibrahim Esmat <iesmat@microsoft.com> Reviewed-on: https://gerrit.iotivity.org/gerrit/20381 Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com> Tested-by: jenkins-iotivity <jenkins@iotivity.org> Reviewed-by: Uze Choi <uzchoi@samsung.com> Reviewed-by: Dan Mihai <Daniel.Mihai@microsoft.com>
-rw-r--r--resource/c_common/oic_platform/src/others/oic_otherplatforms.c4
-rw-r--r--resource/c_common/oic_platform/src/windows/oic_winplatform.cpp9
2 files changed, 8 insertions, 5 deletions
diff --git a/resource/c_common/oic_platform/src/others/oic_otherplatforms.c b/resource/c_common/oic_platform/src/others/oic_otherplatforms.c
index bd2cbe2bc..07466ee1a 100644
--- a/resource/c_common/oic_platform/src/others/oic_otherplatforms.c
+++ b/resource/c_common/oic_platform/src/others/oic_otherplatforms.c
@@ -25,7 +25,7 @@
OICPlatformResult_t OICGetLocalAppDataPath(char* buffer, size_t* bufferLen)
{
- OIC_LOG(WARNING, TAG, "Unsupported platform.");
+ OIC_LOG(INFO, TAG, "OICGetLocalAppDataPath: Unsupported platform.");
OC_UNUSED(buffer);
OC_UNUSED(bufferLen);
return OIC_PLATFORM_NOTIMPL;
@@ -33,7 +33,7 @@ OICPlatformResult_t OICGetLocalAppDataPath(char* buffer, size_t* bufferLen)
OICPlatformResult_t OICGetTempAppDataPath(char* buffer, size_t* bufferLen)
{
- OIC_LOG(WARNING, TAG, "Unsupported platform.");
+ OIC_LOG(INFO, TAG, "OICGetTempAppDataPath: Unsupported platform.");
OC_UNUSED(buffer);
OC_UNUSED(bufferLen);
return OIC_PLATFORM_NOTIMPL;
diff --git a/resource/c_common/oic_platform/src/windows/oic_winplatform.cpp b/resource/c_common/oic_platform/src/windows/oic_winplatform.cpp
index b42b0d9b9..c785056c1 100644
--- a/resource/c_common/oic_platform/src/windows/oic_winplatform.cpp
+++ b/resource/c_common/oic_platform/src/windows/oic_winplatform.cpp
@@ -201,7 +201,7 @@ static OICPlatformResult_t GetSysLocalAppDataPath(std::string &path, size_t &sys
sysPathLen = path.length();
#else // UWP_APP
// Unsupported for win32 apps
- OIC_LOG(WARNING, TAG, "Unsupported platform.");
+ OIC_LOG(INFO, TAG, "GetSysLocalAppDataPath: Unsupported platform.");
OC_UNUSED(path);
OC_UNUSED(sysPathLen);
OC_UNUSED(getTempDir);
@@ -232,8 +232,11 @@ static OICPlatformResult_t GetLocalAppDataPath(std::string &path, bool getTempDi
// Set path to the appropriate system local or temp application data path
if (ret != OIC_PLATFORM_OK)
{
- OIC_LOG_V(ERROR, TAG, "Failed to GetSysLocalAppDataPath, ret: %"PRIuPTR,
- static_cast<size_t>(ret));
+ if (ret != OIC_PLATFORM_NOTIMPL)
+ {
+ OIC_LOG_V(ERROR, TAG, "Failed to GetSysLocalAppDataPath, ret: %" PRIuPTR,
+ static_cast<size_t>(ret));
+ }
// On failure, path should be cleared in GetSysLocalAppDataPath
return ret;
}