BM_CHECK_INPUT_PARAM(app_id);
BM_RETURN_VAL((resource_id < BM_PLUGIN_ID_MAX), {},
BATTERY_MONITOR_ERROR_INVALID_PARAMETER, "invalid resource-id param");
- _DBG("usage requested - app-id[%s], resource_id[%d], start_time [%lld] end_time[%lld]",
- app_id, resource_id, start_time, end_time);
+ _DBG("usage requested - app-id[%s], resource_id[%d], start_time [%ld] end_time[%ld]",
+ app_id, resource_id, (long int)start_time,(long int)end_time);
int error = BATTERY_MONITOR_ERROR_NONE;
appid_usage_s *app_usage = bm_server_query_app_usage_by_appid_ci(app_id, start_time, end_time, &error);
BM_CHECK_INPUT_PARAM(app_id);
- _DBG("usage requested - app-id[%s], start_time [%lld] end_time[%lld]",
- app_id, start_time, end_time);
+ _DBG("usage requested - app-id[%s], start_time [%ld] end_time[%ld]",
+ app_id, (long int)start_time, (long int)end_time);
int error = BATTERY_MONITOR_ERROR_NONE;
appid_usage_s *app_usage = bm_server_query_app_usage_by_appid_ci(app_id, start_time, end_time, &error);
if (!app_usage) {
BM_RETURN_VAL((resource_id < BM_PLUGIN_ID_MAX), {},
BATTERY_MONITOR_ERROR_INVALID_PARAMETER, "invalid resource-id");
- _DBG("usage requested - resource_id[%d], start_time [%lld] end_time[%lld]",
- resource_id, start_time, end_time);
+ _DBG("usage requested - resource_id[%d], start_time [%ld] end_time[%ld]",
+ resource_id, (long int)start_time, (long int)end_time);
int error = BATTERY_MONITOR_ERROR_NONE;
const char *resource_id_str = NULL;
ENTER;
BM_CHECK_INPUT_PARAM(app_id);
BM_CHECK_INPUT_PARAM(battery_data);
- _DBG("usage requested - app-id[%s], start_time[%lld] end_time[%lld]", app_id, start_time, end_time);
+ _DBG("usage requested - app-id[%s], start_time[%ld] end_time[%ld]", \
+ app_id, (long int)start_time, (long int)end_time);
int error = BATTERY_MONITOR_ERROR_NONE;
appid_usage_s *app_usage = bm_server_query_app_usage_by_appid_ci(app_id, start_time, end_time, &error);
if (!app_usage) {
{
ENTER;
- _INFO("app_id [%s], resource_id [%d], start_time [%lld] end_time [%lld]", app_id, resource_id, start_time, end_time);
+ _INFO("app_id [%s], resource_id [%d], start_time [%ld] end_time [%ld]", \
+ app_id, resource_id, (long int)start_time, (long int)end_time);
if (!app_id || (resource_id >= BM_PLUGIN_ID_MAX)) {
_ERR("invalid function param");
{
ENTER;
- _INFO("app_id(%s), start_time (%lld), end_time (%lld)", app_id, start_time, end_time);
+ _INFO("app_id(%s), start_time (%ld), end_time (%ld)", \
+ app_id, (long int)start_time, (long int)end_time);
if (!app_id) {
_ERR("invalid function param");
{
ENTER;
- _INFO("resource_id [%d], start_time [%lld] end_time [%lld]", resource_id, start_time, end_time);
+ _INFO("resource_id [%d], start_time [%ld] end_time [%ld]", \
+ resource_id, (long int)start_time, (long int)end_time);
if (resource_id >= BM_PLUGIN_ID_MAX) {
_ERR("invalid function param");
{
ENTER;
- _INFO("app_id [%s], start_time [%lld] end_time [%lld]", app_id, start_time, end_time);
+ _INFO("app_id [%s], start_time [%ld] end_time [%ld]", \
+ app_id, (long int)start_time, (long int)end_time);
if (!app_id) {
_ERR("invalid function param");