int fb_display(FbInfo *fbi)
{
s_disp.current_buf_id = fbi->current_fb_id;
- LOG("current_fb_id : %d", fbi->current_fb_id);
+ LOG("current_fb_id : %d\n", fbi->current_fb_id);
tdm_if_display_update(&s_disp);
return 0;
{
int ret = 0;
ret = fb_display(fbi);
- LOG("current_fb_id : %d, ret : %d", fbi->current_fb_id, ret);
+ LOG("current_fb_id : %d, ret : %d\n", fbi->current_fb_id, ret);
}
/*-----------------------------------------------------------------------------
fb_draw_img_check_lcd_on()
fbi->current_fb_id = FRONT_BUFFER;
- LOG("current_fb_id :%d", fbi->current_fb_id);
+ LOG("current_fb_id :%d\n", fbi->current_fb_id);
ret = fb_display(fbi);
- LOG("%s - drawing... ret : %d", __func__, ret);
+ LOG("%s - drawing... ret : %d\n", __func__, ret);
}
/*-----------------------------------------------------------------------------
fb_buf_cur = (unsigned int *)fbi->buf[FRONT_BUFFER];
if (fb_buf_cur == NULL) {
- LOG("fb_buf_cur is null error...");
+ LOG("fb_buf_cur is null error...\n");
return;
}
while (loop_count--)
}
if (chmod(SERV_PATH, (S_IRWXU | S_IRWXG | S_IRWXO)) < 0) /* 0777 */
- LOG("failed to change the socket permission");
+ LOG("failed to change the socket permission\n");
if (listen(sockfd, 5) < 0) {
LOG("listen fail\n");
LOG("[read_png_file] File %s could not be opened"
" for reading \n", file_name);
- LOG("Failed to open png file, path = [%s]", file_name);
+ LOG("Failed to open png file, path = [%s]\n", file_name);
return -1;
}
int ret = png_get_IHDR(png_ptr, info_ptr, &png_width, &png_height, &bit_depth, &color_type, NULL, NULL, NULL);
if (ret == 0) {
- LOGE("Failed png_get_IHDR(), ret = [%d]", ret);
+ LOGE("Failed png_get_IHDR(), ret = [%d]\n", ret);
} else if (ret == 1) {
- LOG("color_type = [%d]", color_type);
+ LOG("color_type = [%d]\n", color_type);
if (color_type == PNG_COLOR_TYPE_RGB)
LOG("png color type is PNG_COLOR_TYPE_RGB, color_type = [%d]\n", color_type);
png_img_width = png_width;
png_img_height = png_height;
png_color_type = color_type;
- LOG("png_color_type = [%d]", png_color_type);
+ LOG("png_color_type = [%d]\n", png_color_type);
png_bit_depth = bit_depth;
number_of_passes = png_set_interlace_handling(png_ptr);
LOG("png_color_type = [%d]", png_color_type);
if (png_color_type == PNG_COLOR_TYPE_RGB) {
bpp = 3;
- LOG("png color type is PNG_COLOR_TYPE_RGB, png_color_type = [%d]", png_color_type);
+ LOG("png color type is PNG_COLOR_TYPE_RGB, png_color_type = [%d]\n", png_color_type);
} else if (png_color_type == PNG_COLOR_TYPE_RGBA) {
bpp = 4;
- LOG("png color type is PNG_COLOR_TYPE_RGBA, png_color_type = [%d]", png_color_type);
+ LOG("png color type is PNG_COLOR_TYPE_RGBA, png_color_type = [%d]\n", png_color_type);
} else {
LOG("[draw_png_img_xy] png type does not match RGB or RGBA \n");
unsigned int width_mm = 0;
unsigned int height_mm = 0;
err = tdm_output_get_physical_size(output, &width_mm, &height_mm);
- LOG("TDM_OUTPUT_MODE:name[%s] mode:wh[%d %d] mm[%d %d]",
+ LOG("TDM_OUTPUT_MODE:name[%s] mode:wh[%d %d] mm[%d %d]\n",
output_mode->name, st_disp->width, st_disp->height, width_mm, height_mm);
break;
if (ret != OK) {
cause = ret;
ret = UPI_VERIFY_ERROR;
- LOG("%s verify fail", s_part_info[part_idx].ua_parti_name);
+ LOG("%s verify fail\n", s_part_info[part_idx].ua_parti_name);
goto CleanUp;
}
s_update_data[part_idx].verify_check = 1;
if (ret != OK) {
cause = ret;
ret = UPI_UPDATE_ERROR;
- LOG("%s update fail", s_part_info[part_idx].ua_parti_name);
+ LOG("%s update fail\n", s_part_info[part_idx].ua_parti_name);
goto CleanUp;
}
s_update_data[part_idx].update_check = 1;
case E_SS_SOURCE_CORRUPTED: /* not used */
case E_SS_IMGBADDELTA:
case E_SS_FSBADDELTA:
- LOG("Corrupted firmware update package, did not store correctly. Detected, for example, by mismatched CRCs between actual and expected.");
+ LOG("Corrupted firmware update package, did not store correctly. Detected, for example, by mismatched CRCs between actual and expected.\n");
break;
case E_SS_BAD_PARAMS:
- LOG("Wrong Firmware Update Package delivered to device based on current device characteristics");
+ LOG("Wrong Firmware Update Package delivered to device based on current device characteristics\n");
break;
case E_SS_INVALID_DP_HEADER:
case E_SS_INVALID_DP_WRONG_SIGNATURE:
- LOG("Failure to positively validate digital signature of firmware update package");
+ LOG("Failure to positively validate digital signature of firmware update package\n");
break;
case E_SS_PKG_TOO_LONG: /* not used */
- LOG("Firmware Update Package is Not Acceptable");
+ LOG("Firmware Update Package is Not Acceptable\n");
break;
case E_SS_NOT_ENOUGH_RAM:
case E_SS_MALLOC_ERROR:
- LOG("The update fails because there isn't sufficient memory to update the device.");
+ LOG("The update fails because there isn't sufficient memory to update the device.\n");
break;
case E_SS_FSSRCBACKUPFAILED:
case E_SS_IMGSRCBACKUPFAILED:
case E_SS_WRITE_ERROR:
case E_SS_FSFAILEDTOBACKUPPATCHINFO:
case E_SS_FSBADATTRIBUTES:
- LOG("The update failed because writing data to the device was unsuccessful.");
+ LOG("The update failed because writing data to the device was unsuccessful.\n");
break;
case E_SS_FSSRCCURRUPTED:
case E_SS_IMGSRCCURRUPTED:
case E_SS_FSFAILEDTOPARSEDELTACNT:
case E_SS_FSFAILEDTOOPENPATCHINFO:
case E_SS_FSFAILEDTOPARSEDELTAINFO:
- LOG("The update failed because data was corrupted during update of device.");
+ LOG("The update failed because data was corrupted during update of device.\n");
break;
default:
- LOG("another error");
+ LOG("another error\n");
break;
}
}