Add Line feed to all log 82/209982/1
authorJeon Sang-Heon <sh95.jeon@samsung.com>
Mon, 15 Jul 2019 01:04:32 +0000 (10:04 +0900)
committerJeon Sang-Heon <sh95.jeon@samsung.com>
Mon, 15 Jul 2019 01:16:05 +0000 (10:16 +0900)
Change-Id: I4d75e03ef0465c5d1a5da1763de621d4aea479aa
Signed-off-by: Jeon Sang-Heon <sh95.jeon@samsung.com>
fota_gui/fota_gr_direct_tw.c
fota_gui/fota_gui_main.c
fota_gui/fota_png.c
fota_gui/tdm-if.c
src/ua.c

index b9f106d19a78fa52eac7242a9f4cbb9360697584..cb073cbae12061d61ccf2ed672e8774b2e1a30f2 100755 (executable)
@@ -92,7 +92,7 @@ void fb_close(FbInfo *fbi)
 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;
@@ -105,7 +105,7 @@ void fb_draw_img_forced_update(FbInfo *fbi)
 {
        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()
@@ -117,11 +117,11 @@ void fb_draw_img_check_lcd_on(FbInfo *fbi)
 
        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);
 }
 
 /*-----------------------------------------------------------------------------
@@ -135,7 +135,7 @@ void fb_clear_screen(FbInfo *fbi, unsigned int color)
        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--)
index a98ea15351eeb63be0246051ef478d07dc971adc..a4e8254cd1b05c4fb5eab174fa69c227463e46c7 100755 (executable)
@@ -212,7 +212,7 @@ int main(int argc, char **argv)
        }
 
        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");
index 63aa2910643c4dfac11bdb72f556b17f983d0aec..f36bc5011cb27b37225efb3dfc590ed1b145de06 100755 (executable)
@@ -50,7 +50,7 @@ int read_png_file(char *file_name)
                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;
        }
 
@@ -104,9 +104,9 @@ int read_png_file(char *file_name)
 
        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);
@@ -127,7 +127,7 @@ int read_png_file(char *file_name)
        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);
@@ -295,10 +295,10 @@ void draw_png_img_xy(FbInfo *fbi, int x1, int y1)
        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");
 
index 75674764a37aef0fc5a14da0c513e46ae45a172b..c3a2ee3bd46c59e5632e554943147fac4031d0c9 100755 (executable)
@@ -131,7 +131,7 @@ int tdm_if_display_init(tdm_if_disp *st_disp)
                        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;
index b83344d44fe8681417d1ad91b6c02b148ff9a8f0..7b8e71b6345fb2c8cb108e89a637a161bc0848f9 100755 (executable)
--- a/src/ua.c
+++ b/src/ua.c
@@ -602,7 +602,7 @@ int update_all()
                                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;
@@ -645,7 +645,7 @@ int update_all()
                                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;
@@ -711,21 +711,21 @@ static void print_error_cause(int error)
        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:
@@ -734,7 +734,7 @@ static void print_error_cause(int error)
        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:
@@ -743,10 +743,10 @@ static void print_error_cause(int error)
        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;
        }
 }