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/libmondo-cli.c

    r2291 r2296  
    901901        }
    902902        flag_set['d'] = TRUE;
    903         mr_asprintf(&tmp1,
    904                 "You didn't specify a tape streamer device. I'm assuming %s",
    905                 flag_val['d']);
     903        mr_asprintf(&tmp1, "You didn't specify a tape streamer device. I'm assuming %s", flag_val['d']);
    906904        log_to_screen(tmp1);
    907905        mr_free(tmp1);
     
    11841182
    11851183    if (flag_set['b']) {
    1186         mr_asprintf(&psz, flag_val['b']);
     1184        mr_asprintf(&psz, "%s", flag_val['b']);
    11871185        log_msg(1, "psz = '%s'", psz);
    11881186        if (psz[strlen(psz) - 1] == 'k') {
     
    12301228            && !does_file_exist(bkpinfo->kernel_path)) {
    12311229            retval++;
    1232             mr_asprintf(&tmp1,
    1233                     "You specified kernel '%s', which does not exist\n",
    1234                     bkpinfo->kernel_path);
     1230            mr_asprintf(&tmp1, "You specified kernel '%s', which does not exist\n", bkpinfo->kernel_path);
    12351231            log_to_screen(tmp1);
    12361232            mr_free(tmp1);
     
    12721268        if (i) {
    12731269            retval++;
    1274             mr_asprintf(&tmp2,
    1275                     "Are you sure directory '%s' exists in remote dir '%s'?\nIf so, do you have rights to write to it?\n",
    1276                     bkpinfo->nfs_remote_dir, bkpinfo->nfs_mount);
     1270            mr_asprintf(&tmp2, "Are you sure directory '%s' exists in remote dir '%s'?\nIf so, do you have rights to write to it?\n", bkpinfo->nfs_remote_dir, bkpinfo->nfs_mount);
    12771271            log_to_screen(tmp2);
    12781272            mr_free(tmp2);
     
    15931587    case SIGKILL:
    15941588        mr_asprintf(&tmp, "SIGKILL");
    1595         mr_asprintf(&tmp2,
    1596                "I seriously have no clue how this signal even got to me. Something's wrong with your system.");
     1589        mr_asprintf(&tmp2, "I seriously have no clue how this signal even got to me. Something's wrong with your system.");
    15971590        break;
    15981591    case SIGTERM:
     
    16061599    case SIGSEGV:
    16071600        mr_asprintf(&tmp, "SIGSEGV");
    1608         mr_asprintf(&tmp2,
    1609                "Internal programming error. Please send a backtrace as well as your log.");
     1601        mr_asprintf(&tmp2, "Internal programming error. Please send a backtrace as well as your log.");
    16101602        break;
    16111603    case SIGPIPE:
Note: See TracChangeset for help on using the changeset viewer.