Ignore:
Timestamp:
Jul 23, 2009, 2:53:30 PM (15 years ago)
Author:
Bruno Cornec
Message:
  • Replace sprintf by mr_asprintf in mondo-rstr-compare.c
  • All mr_asprintf call should be on one line (for quality script) and use a string as second param
  • Improve quality script
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.10/mondo/src/common/newt-specific.c

    r2291 r2296  
    10261026            || percentage > g_isoform_old_progress) {
    10271027            g_isoform_old_progress = percentage;
    1028             mr_asprintf(&timeline_str, "%2ld:%02ld taken            %2ld:%02ld remaining", (long) time_taken / 60, (long) time_taken % 60,
    1029                             (long) time_remaining / 60, (long) time_remaining % 60);
     1028            mr_asprintf(&timeline_str, "%2ld:%02ld taken            %2ld:%02ld remaining", (long) time_taken / 60, (long) time_taken % 60, (long) time_remaining / 60, (long) time_remaining % 60);
    10301029            if (percentage < 3) {
    10311030                mr_asprintf(&pcline_str, " Working");
     
    10381037                mr_strcat(pcline_str, " %c", special_dot_char(g_mysterious_dot_counter));
    10391038            } else {
    1040                 mr_asprintf(&pcline_str, " %3d%% done              %3d%% to go",
    1041                         percentage, 100 - percentage);
     1039                mr_asprintf(&pcline_str, " %3d%% done              %3d%% to go", percentage, 100 - percentage);
    10421040            }
    10431041            if (g_text_mode) {
     
    11431141        } else {
    11441142            if (g_current_progress > g_maximum_progress) {
    1145                 mr_asprintf(&tmp,
    1146                         "update_progress_form_full(%s,%s,%s) --- g_current_progress=%ld; g_maximum_progress=%ld",
    1147                         blurb1, blurb2, blurb3, g_current_progress,
    1148                         g_maximum_progress);
    1149                 log_msg(0, tmp);
    1150                 mr_free(tmp);
     1143                log_msg(0, "update_progress_form_full(%s,%s,%s) --- g_current_progress=%ld; g_maximum_progress=%ld", blurb1, blurb2, blurb3, g_current_progress, g_maximum_progress);
    11511144                g_current_progress = g_maximum_progress;
    11521145            }
     
    11851178            paranoid_free(taskprogress);
    11861179        } else {
    1187             mr_asprintf(&timeline_str, "%2ld:%02ld taken               %2ld:%02ld remaining  ",
    1188                 (long) time_taken / 60, (long) time_taken % 60, (long) time_remaining / 60, (long) time_remaining % 60);
     1180            mr_asprintf(&timeline_str, "%2ld:%02ld taken               %2ld:%02ld remaining  ", (long) time_taken / 60, (long) time_taken % 60, (long) time_remaining / 60, (long) time_remaining % 60);
    11891181            mr_asprintf(percentline_str, " %3d%% done                 %3d%% to go", percentage, 100 - percentage);
    11901182
     
    16081600                                   keylist[i]);
    16091601        }
    1610         mr_asprintf(&differ_sz,
    1611                 "  %ld files differ. Hit 'Select' to pick a file. Hit 'Close' to quit the list.",
    1612                 i);
     1602        mr_asprintf(&differ_sz, "  %ld files differ. Hit 'Select' to pick a file. Hit 'Close' to quit the list.", i);
    16131603        newtPushHelpLine(differ_sz);
    16141604        mr_free(differ_sz);
Note: See TracChangeset for help on using the changeset viewer.