Ignore:
Timestamp:
Nov 18, 2016, 5:31:42 PM (7 years ago)
Author:
Bruno Cornec
Message:

Add function mr_getcwd and use it to allow use o dynamically allocated memory
instead of getcwd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mondo/src/common/libmondo-tools.c

    r3610 r3613  
    107107    bool is_valid = TRUE;
    108108
    109     log_it("ASSERTION FAILED: `%s' at %s:%d in %s", exp, file, line,
    110            function);
     109    log_it("ASSERTION FAILED: `%s' at %s:%d in %s", exp, file, line, function);
    111110    if (ignoring_assertions) {
    112111        log_it("Well, the user doesn't care...");
     
    143142             */
    144143        case '\n':
    145             printf
    146                 ("(I)gnore, ignore (A)ll, (D)ebug, a(B)ort, or (E)xit? ");
     144            printf("(I)gnore, ignore (A)ll, (D)ebug, a(B)ort, or (E)xit? ");
    147145            break;
    148146        default:
     
    938936    if (system("which " MKE2FS_OR_NEWFS " > /dev/null 2> /dev/null")) {
    939937        retval++;
    940         log_to_screen
    941             ("Unable to find " MKE2FS_OR_NEWFS " in system path.");
    942         fatal_error
    943             ("Please use \"su -\", not \"su\" to become root. OK? ...and please don't e-mail the mailing list or me about this. Just read the message. :)");
     938        log_to_screen("Unable to find " MKE2FS_OR_NEWFS " in system path.");
     939        fatal_error("Please use \"su -\", not \"su\" to become root. OK?\n...and please don't e-mail the mailing list about this. Just read the message. :)");
    944940    }
    945941#ifndef __FreeBSD__
    946     if (run_program_and_log_output
    947         ("grep ramdisk /proc/devices", FALSE)) {
     942    if (run_program_and_log_output("grep ramdisk /proc/devices", FALSE)) {
    948943        /* Some SuSE have ramdisk as modules, so insert it first, then test again */
    949944        run_program_and_log_output("modprobe brd 2> /dev/null > /dev/null",FALSE);
Note: See TracChangeset for help on using the changeset viewer.