Changeset 1475


Ignore:
Timestamp:
May 31, 2007, 11:02:34 AM (12 years ago)
Author:
bruno
Message:

Less verbosity in the sort function (reduces log file and helps reading it)

Location:
branches/2.2.4
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.4/mondo/src/common/libmondo-filelist.c

    r1437 r1475  
    265265    int retval = 0;
    266266
    267     log_msg(1, "Sorting file %s", orig_fname);
     267    log_msg(5, "Sorting file %s", orig_fname);
    268268    malloc_string(tmp_fname);
    269269    malloc_string(command);
     
    272272
    273273    if (!does_file_exist(orig_fname)) {
     274        log_msg(2, "file %s empty", orig_fname);
    274275        return (0);
    275276    }                           // no sense in trying to sort an empty file
     
    281282        log_msg(2, "Failed to sort %s - oh dear", orig_fname);
    282283    } else {
    283         log_msg(2, "Sorted %s --> %s OK. Copying it back to %s now",
     284        log_msg(5, "Sorted %s --> %s OK. Copying it back to %s now",
    284285                orig_fname, tmp_fname, orig_fname);
    285286        sprintf(command, "mv -f %s %s", tmp_fname, orig_fname);
    286         retval += run_program_and_log_output(command, 2);
     287        retval += run_program_and_log_output(command, 5);
    287288        if (retval) {
    288289            log_msg(2, "Failed to copy %s back to %s - oh dear", tmp_fname,
    289290                    orig_fname);
    290291        } else {
    291             log_msg(2, "%s was sorted OK.", orig_fname);
     292            log_msg(5, "%s was sorted OK.", orig_fname);
    292293        }
    293294    }
    294295    paranoid_free(tmp_fname);
    295296    paranoid_free(command);
    296     log_msg(1, "Finished sorting file %s", orig_fname);
     297    log_msg(5, "Finished sorting file %s", orig_fname);
    297298    return (retval);
    298299}
  • branches/2.2.4/tools/mkqemu

    r1470 r1475  
    66#
    77
    8 if [ _"$1" == _"" ]; then
     8if [ _"$1" = _"" ]; then
    99    echo "Syntax: qemu vm"
    1010    exit -1
Note: See TracChangeset for help on using the changeset viewer.