Changeset 2159


Ignore:
Timestamp:
Aug 23, 2012, 3:31:47 PM (7 years ago)
Author:
matthijs
Message:

mountd: Add newlines to some log messages.

These newlines are added automatically when logging to syslog, but when
running in the foreground and logging to stdout (needs changes to the
source), the newlines should be added manually.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/fon/mountd/src/lib/mount.c

    r2158 r2159  
    564564                if(mount->fs == FAT)
    565565                {
    566                         log_printf("mount -t vfat -o rw,noatime,utf8,uid=1000,gid=1000/dev/%s %s", mount->dev, tmp);
     566                        log_printf("mount -t vfat -o rw,noatime,utf8,uid=1000,gid=1000/dev/%s %s\n", mount->dev, tmp);
    567567                        ret = system_printf("mount -t vfat -o rw,noatime,utf8,uid=1000,gid=1000 /dev/%s %s", mount->dev, tmp);
    568568                }
    569569                if(mount->fs == EXT3)
    570570                {
    571                         log_printf("mount -t ext3 -o rw,noatime,defaults /dev/%s %s", mount->dev, tmp);
     571                        log_printf("mount -t ext3 -o rw,noatime,defaults /dev/%s %s\n", mount->dev, tmp);
    572572                        ret = system_printf("mount -t ext3 -o rw,noatime,defaults /dev/%s %s", mount->dev, tmp);
    573573                }
    574574                if(mount->fs == EXT2)
    575575                {
    576                         log_printf("mount -t ext2 -o rw,noatime,defaults /dev/%s %s", mount->dev, tmp);
     576                        log_printf("mount -t ext2 -o rw,noatime,defaults /dev/%s %s\n", mount->dev, tmp);
    577577                        ret = system_printf("mount -t ext2 -o rw,noatime,defaults /dev/%s %s", mount->dev, tmp);
    578578                }
    579579                if(mount->fs == HFSPLUS)
    580580                {
    581                         log_printf("mount -t hfsplus -o rw,noatime,defaults,uid=1000,gid=1000 /dev/%s %s", mount->dev, tmp);
     581                        log_printf("mount -t hfsplus -o rw,noatime,defaults,uid=1000,gid=1000 /dev/%s %s\n", mount->dev, tmp);
    582582                        ret = system_printf("mount -t hfsplus -o rw,noatime,defaults,uid=1000,gid=1000 /dev/%s %s", mount->dev, tmp);
    583583                }
    584584                if(mount->fs == NTFS)
    585585                {
    586                         log_printf("ntfs-3g /dev/%s %s -o force,noatime", mount->dev, tmp);
     586                        log_printf("ntfs-3g /dev/%s %s -o force,noatime\n", mount->dev, tmp);
    587587                        ret = system_printf("ntfs-3g /dev/%s %s -o force,noatime", mount->dev, tmp);
    588588                }
Note: See TracChangeset for help on using the changeset viewer.