ADD_DEFINITIONS("-D_FILE_OFFSET_BITS=64")
-IF(_WEARABLE_PROFILE)
- ADD_DEFINITIONS("-DMSG_MGR_WEARABLE_PROFILE")
-ENDIF(_WEARABLE_PROFILE)
-
SET(CMAKE_SKIP_BUILD_RPATH TRUE)
IF("${CMAKE_BUILD_TYPE}" STREQUAL "")
MSG_ERR("Faile to get space info [%s]", ec.message().c_str());
return MSG_ERR_STORAGE_ERROR;
} else {
- MSG_DEBUG("Free space of storage is [%llu] MB.", si.free);
+ MSG_DEBUG("Free space of storage is [%llu] Bytes.", si.available);
- if (si.free < SMS_MINIMUM_SPACE && pMsgType->mainType == MSG_SMS_TYPE)
+ if (si.available < SMS_MINIMUM_SPACE && pMsgType->mainType == MSG_SMS_TYPE)
err = MSG_ERR_MESSAGE_COUNT_FULL;
- else if (si.free < MMS_MINIMUM_SPACE && pMsgType->mainType == MSG_MMS_TYPE)
+ else if (si.available < MMS_MINIMUM_SPACE && pMsgType->mainType == MSG_MMS_TYPE)
err = MSG_ERR_MESSAGE_COUNT_FULL;
}
return MSG_ERR_STORAGE_ERROR;
}
- MSG_DEBUG("Free space of storage is [%llu] MB.", si.free);
+ MSG_DEBUG("Free space of storage is [%llu] Bytes.", si.available);
- if (si.free < SMS_MINIMUM_SPACE)
+ if (si.available < SMS_MINIMUM_SPACE)
err = MSG_ERR_MESSAGE_COUNT_FULL;
MSG_DEBUG("Memory status =[%d]", err);