Ignore:
Timestamp:
Jun 19, 2009, 6:05:10 PM (15 years ago)
Author:
Bruno Cornec
Message:

r3132@localhost: bruno | 2009-06-19 16:10:49 +0200
Ads a test infrastruture for mountlist nd truncname

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mondo/src/common/libmondo-mountlist.c

    r2232 r2235  
    537537            paranoid_free(tmp);
    538538        } else {
     539            log_msg(8, "Evaluating drive #%d (%s) within mountlist", i, drivelist->el[i].device);
    539540            if ((tmp = evaluate_drive_within_mountlist(mountlist, drivelist->el[i].device)) == NULL) {
    540541                res++;
     
    686687        }
    687688        if (j == noof_drives) {
    688             strcpy(drivelist->el[noof_drives++].device, truncdrive);
     689            log_msg(8,"Adding drive %s to list", drivelist->el[noof_drives].device[63]);
     690            strncpy(drivelist->el[noof_drives].device, drive, 63);
     691            drivelist->el[noof_drives].device[63] = '\0';
     692            noof_drives++;
    689693            drivelist->el[noof_drives++].device[63] = '\0';
    690694        }
     
    693697    }
    694698    drivelist->entries = noof_drives;
    695     log_msg(8, "Made list of drives");
     699    log_msg(8, "Made list of %d drives",noof_drives);
    696700
    697701    return (noof_drives);
Note: See TracChangeset for help on using the changeset viewer.