fix all -Wformat -Wformat-security compiler warnings (Vincent Untz)

master
szaka 2008-11-13 01:53:21 +00:00
parent da3774f53f
commit e8b6fe03f6
2 changed files with 3 additions and 3 deletions

View File

@ -2013,7 +2013,7 @@ static void mknod_dev_fuse(const char *dev)
if (mknod(dev, S_IFCHR | 0666, makedev(10, 229))) {
ntfs_log_perror("Failed to create '%s'", dev);
if (errno == EPERM)
ntfs_log_error(dev_fuse_msg);
ntfs_log_error("%s", dev_fuse_msg);
}
umask(mask);
}
@ -2290,7 +2290,7 @@ int main(int argc, char *argv[])
#if defined(linux) || defined(__uClinux__)
if (S_ISBLK(sbuf.st_mode) && (fstype == FSTYPE_FUSE))
ntfs_log_info(fuse26_kmod_msg);
ntfs_log_info("%s", fuse26_kmod_msg);
#endif
setup_logging(parsed_options);

View File

@ -133,7 +133,7 @@ void utils_mount_error(const char *volume, const char *mntpoint, int err)
ntfs_log_error(hibernated_volume_msg, volume, mntpoint);
break;
case NTFS_VOLUME_UNCLEAN_UNMOUNT:
ntfs_log_error(unclean_journal_msg);
ntfs_log_error("%s", unclean_journal_msg);
ntfs_log_error(forced_mount_msg, volume, mntpoint,
volume, mntpoint);
break;