Ignore:
Timestamp:
May 13, 2010, 4:16:36 AM (14 years ago)
Author:
Bruno Cornec
Message:
  • Improve display of messages (removes extra \n) and replace a stract with "" with " ". trying to debug #421
File:
1 edited

Legend:

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

    r2628 r2632  
    19231923    while (DSFptr != NULL) {
    19241924        if (DSFptr->check) {
    1925             log_msg (4, "%s is mounted on %s and is on disk %s\n", DSFptr->device, DSFptr->mount_point, ndsf);
     1925            log_msg (4, "%s is mounted on %s and is on disk %s", DSFptr->device, DSFptr->mount_point, ndsf);
    19261926            strcat(*included_dsf_list, DSFptr->mount_point);
    19271927            strcat(*included_dsf_list, " ");
    19281928        } else {
    1929             log_msg (4, "%s is mounted on %s and is NOT on disk %s\n", DSFptr->device, DSFptr->mount_point, ndsf);
     1929            log_msg (4, "%s is mounted on %s and is NOT on disk %s", DSFptr->device, DSFptr->mount_point, ndsf);
    19301930            strcat(*excluded_dsf_list, DSFptr->mount_point);
    19311931            strcat(*excluded_dsf_list, " ");
     
    19701970        if (mode == 'E') {
    19711971            if (strlen(mounted_on_dsf)) {
    1972                 log_to_screen("Excluding the following file systems on %s:\n", token);
    1973                 log_to_screen("  %s\n", mounted_on_dsf);
     1972                log_to_screen("Excluding the following file systems on %s:", token);
     1973                log_to_screen("==> %s", mounted_on_dsf);
    19741974                log_msg (5, "Adding to bkpinfo->exclude_paths due to -E option: %s", mounted_on_dsf);
    19751975                strcat(bkpinfo->exclude_paths, " ");
     
    19791979            }
    19801980        } else {
    1981             log_to_screen("Archiving only the following file systems on %s:\n", token);
    1982             log_to_screen("  %s\n", mounted_on_dsf);
     1981            log_to_screen("Archiving only the following file systems on %s:", token);
     1982            log_to_screen("==> %s\n", mounted_on_dsf);
    19831983            strcpy(bkpinfo->include_paths, "/");
    19841984            if (strlen(not_mounted_on_dsf)) {
    19851985                log_msg (5, "Adding to bkpinfo->exclude_paths due to -I option: %s", not_mounted_on_dsf);
    1986                 log_to_screen("Not archiving the following file systems:\n");
    1987                 log_to_screen("  %s\n", not_mounted_on_dsf);
     1986                log_to_screen("Not archiving the following file systems:");
     1987                log_to_screen("==> %s", not_mounted_on_dsf);
    19881988                strcat(bkpinfo->exclude_paths, " ");
    19891989                strcat(bkpinfo->exclude_paths, not_mounted_on_dsf);
    1990                 strcat(bkpinfo->exclude_paths, "");
     1990                strcat(bkpinfo->exclude_paths, " ");
    19911991            }
    19921992        }
Note: See TracChangeset for help on using the changeset viewer.