fix all -Wformat -Wformat-security compiler warnings (Vincent Untz)
parent
da3774f53f
commit
e8b6fe03f6
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue