vsnprintf(temp, sizeof(temp), aFormat, list);
va_end(list);
- LOGL(LOG_SSENGINE, "%s", temp);
+ LOGL(LOG_SSENGINE, "%s\n", temp);
#endif
return S_SS_SUCCESS;
}
*file_name = '/';
ret = rename(path1, path2);
if (ret < 0) {
- LOGE("Move failed, error code [%d]", errno);
+ LOGE("Move failed, error code [%d]\n", errno);
return E_SS_WRITE_ERROR;
}
} else if (errno == 18) { //EXDEV 18 /* Cross-device link */
return E_SS_WRITE_ERROR;
}
} else {
- LOGE("Move failed, error code [%d]", errno);
+ LOGE("Move failed, error code [%d]\n", errno);
return E_SS_WRITE_ERROR;
}
}
#endif
ret = lseek(wHandle, dwPosition, SEEK_SET);
if (ret < 0) {
- LOGE("Handle:%ld , Pos:%u , Size: %u", wHandle, dwPosition,
+ LOGE("Handle:%ld , Pos:%u , Size: %u\n", wHandle, dwPosition,
dwSize);
LOGE("lseek failed with return value: %d\n", ret);
return E_SS_READ_ERROR;
}
ret = read(wHandle, pbBuffer, dwSize);
if (ret < 0) {
- LOGE("Handle:%ld , Pos:%u , Size: %u", wHandle, dwPosition,
+ LOGE("Handle:%ld , Pos:%u , Size: %u\n", wHandle, dwPosition,
dwSize);
LOGE("read failed with return value: %d\n", ret);
return E_SS_READ_ERROR;
if (tar_extract_file(ua_dataSS->update_data->ua_delta_path, SS_KERNEL_UNPACK_SCRIPT, SS_KERN_UNPK_SCRIPT_PATH) > 0)
LOGL(LOG_SSENGINE, "Extracted %s successfully\n", SS_KERNEL_UNPACK_SCRIPT);
else {
- LOGE("Error in fn tar_extract_file for item %s", SS_KERNEL_UNPACK_SCRIPT);
+ LOGE("Error in fn tar_extract_file for item %s\n", SS_KERNEL_UNPACK_SCRIPT);
SS_SetUpgradeState(E_SS_DELTA_IS_CORRUPT);
result = E_SS_FAILURE;
goto Cleanup;
} else {
- LOGE("Error size is not positive for item %s", SS_KERNEL_UNPACK_SCRIPT);
+ LOGE("Error size is not positive for item %s\n", SS_KERNEL_UNPACK_SCRIPT);
SS_SetUpgradeState(E_SS_DELTA_IS_CORRUPT);
result = E_SS_FAILURE;
goto Cleanup;
#ifdef MEM_PROFILING
if (!mem_profiling_start)
if (!(S_SS_SUCCESS == SS_Do_Memory_Profiling()))
- LOGE("Unable to start Memory_Profiling");
+ LOGE("Unable to start Memory_Profiling\n");
#endif
return S_SS_SUCCESS;//wgid: 2456
} else
pfilePath = strtok_r(pline, "\"", &saveptr_pline);
if (pfilePath && strcmp(pfilePath, SS_FWSLASH) == 0) {
- LOGE("\n skip root: it is RO");
+ LOGE("skip root: it is RO\n");
pline = strtok_r(NULL, SS_TOKEN_NEWLINE, &psaveptr);
continue;
}
result = SS_SetFileAttributes(pfilePath, ulAttribSize, (const unsigned char *)pattribs);
if (result != S_SS_SUCCESS) {
- LOGE("\n Failed to set Attributes %s", pfilePath);
+ LOGE("Failed to set Attributes %s\n", pfilePath);
SS_SetUpgradeState(E_SS_FSBADATTRIBUTES);
if (item_data) {
SS_Free(item_data);
fail_cnt++;
}
} else {
- LOGE("\n Failed to Parse Attributes - LINE %s", pline);
+ LOGE("Failed to Parse Attributes - LINE %s\n", pline);
SS_SetUpgradeState(E_SS_FSBADATTRIBUTES);
if (item_data) {
SS_Free(item_data);
struct statfs sb;
aFile = setmntent("/proc/mounts", "r");
if (aFile == NULL) {
- LOGE("setmntent error");
+ LOGE("setmntent error\n");
return E_SS_FAILURE;
}
while (NULL != (ent = getmntent(aFile))) {
return E_SS_FAILURE;
}
if (ua_dataSS->update_cfg && ua_dataSS->update_cfg->soure_img_size && ua_dataSS->update_cfg->target_sha1)
- LOGL(LOG_SSENGINE, "\n SS_IMGUpdatemain Params -source size [%d] sha1 [%s]",
+ LOGL(LOG_SSENGINE, "SS_IMGUpdatemain Params -source size [%d] sha1 [%s]\n",
ua_dataSS->update_cfg->soure_img_size, ua_dataSS->update_cfg->target_sha1);
else {
LOGE("Bad structure member update_cfg in ua_dataSS\n");
tar_Data_t *prev = head;
if (head == n) {
if (head->nextnode == NULL) {
- LOG("There is only one node. The list can't be made empty ");
+ LOG("There is only one node. The list can't be made empty\n");
return;
}
strncpy((char *)head->itemName, (const char *)head->nextnode->itemName, TAR_ITEM_NAME_SIZE); //head->itemName = head->nextnode->itemName;
while (prev->nextnode != NULL && prev->nextnode != n)
prev = prev->nextnode;
if (prev->nextnode == NULL) {
- LOG("\n Given node is not present in Linked List");
+ LOG("Given node is not present in Linked List\n");
return;
}
prev->nextnode = prev->nextnode->nextnode;
{
tar_Data_t *local_temp = NULL;
while (head) {
- LOGL(LOG_SSENGINE, "tar_cfg_delete_node [%s]", (char *)head->itemName);
+ LOGL(LOG_SSENGINE, "tar_cfg_delete_node [%s]\n", (char *)head->itemName);
local_temp = head->nextnode;
SS_Free(head);
head = local_temp;
snprintf(name + strlen(name), sizeof(name) - strlen(name),
"%s", buff + PREFIX_INDICATOR_BYTE);
snprintf(dirPath, sizeof(dirPath), "%s/%s", path, name + folderpathlen);
- LOG(" File Name is longer than 100 bytes -Remaining Str [%s]\n Full Str[%s]", dirPath);
+ LOG(" File Name is longer than 100 bytes -Remaining Str [%s]\n Full Str[%s]\n", dirPath);
} else {
//LOG(" Extracting file %s\n", fullname);
memset(dirPath, 0, sizeof(dirPath));