Changeset 1478


Ignore:
Timestamp:
May 31, 2007, 7:09:24 PM (12 years ago)
Author:
bruno
Message:
  • Adds dmesg result to init log
  • Less verbosity in the sort function (reduces log file and helps reading it)

(merge -r 1473:1477 of 2.2.4)

Location:
branches/stable
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/stable/mindi/rootfs/sbin/init

    r1456 r1478  
    539539lsmod >> $LOGFILE
    540540LogIt "-------------"
     541LogIt "dmesg result:"
     542LogIt "-------------"
     543dmesg >> $LOGFILE
    541544
    542545#-------------------------------
  • branches/stable/mondo/src/common/libmondo-filelist.c

    r1438 r1478  
    152152    int retval = 0;
    153153
    154     mr_msg(1, "Sorting file %s", orig_fname);
     154    mr_msg(5, "Sorting file %s", orig_fname);
    155155    mr_asprintf(&tmp_fname, "/tmp/sort.%d.%d.%d", (int) (random() % 32768),
    156156             (int) (random() % 32768), (int) (random() % 32768));
    157157
    158158    if (!does_file_exist(orig_fname)) {
     159        log_msg(2, "file %s empty", orig_fname);
    159160        return (0);
    160161    }                           // no sense in trying to sort an empty file
     
    168169        mr_msg(2, "Failed to sort %s - oh dear", orig_fname);
    169170    } else {
    170         mr_msg(2, "Sorted %s --> %s OK. Copying it back to %s now",
     171        mr_msg(5, "Sorted %s --> %s OK. Copying it back to %s now",
    171172                orig_fname, tmp_fname, orig_fname);
    172173        mr_asprintf(&command, "mv -f %s %s", tmp_fname, orig_fname);
    173         retval += run_program_and_log_output(command, 2);
     174        retval += run_program_and_log_output(command, 5);
    174175        mr_free(command);
    175176
     
    178179                    orig_fname);
    179180        } else {
    180             mr_msg(2, "%s was sorted OK.", orig_fname);
     181            mr_msg(5, "%s was sorted OK.", orig_fname);
    181182        }
    182183    }
    183184    mr_free(tmp_fname);
    184     mr_msg(1, "Finished sorting file %s", orig_fname);
     185    mr_msg(5, "Finished sorting file %s", orig_fname);
    185186    return (retval);
    186187}
Note: See TracChangeset for help on using the changeset viewer.