From e8b6fe03f6902944e2196d794598b0e6948d6930 Mon Sep 17 00:00:00 2001 From: szaka Date: Thu, 13 Nov 2008 01:53:21 +0000 Subject: [PATCH] fix all -Wformat -Wformat-security compiler warnings (Vincent Untz) --- src/ntfs-3g.c | 4 ++-- src/utils.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ntfs-3g.c b/src/ntfs-3g.c index af34fe6e..d5d1fcf0 100644 --- a/src/ntfs-3g.c +++ b/src/ntfs-3g.c @@ -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); diff --git a/src/utils.c b/src/utils.c index f59683d0..5f3f3db0 100644 --- a/src/utils.c +++ b/src/utils.c @@ -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;