aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorRandy Dunlap <rddunlap@osdl.org>2005-03-03 06:19:53 -0500
committerAnton Altaparmakov <aia21@cantab.net>2005-05-05 06:11:47 -0400
commit8907547d4b099e67762ea4891c127ea1f6dd1cb7 (patch)
tree74fa9c887db8a7915325ad9a76d874ed134c0d9a /fs
parent5ae9fcf8f329baba4bada8719cb0337eef083a1a (diff)
NTFS: Fix printk format warnings on ia64. (Randy Dunlap)
Signed-off-by: Randy Dunlap <rddunlap@osdl.org> Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
Diffstat (limited to 'fs')
-rw-r--r--fs/ntfs/ChangeLog1
-rw-r--r--fs/ntfs/aops.c3
-rw-r--r--fs/ntfs/debug.c15
-rw-r--r--fs/ntfs/inode.c12
-rw-r--r--fs/ntfs/lcnalloc.c2
-rw-r--r--fs/ntfs/mft.c2
6 files changed, 20 insertions, 15 deletions
diff --git a/fs/ntfs/ChangeLog b/fs/ntfs/ChangeLog
index ad2c4e88f053..bfd86c5cc480 100644
--- a/fs/ntfs/ChangeLog
+++ b/fs/ntfs/ChangeLog
@@ -29,6 +29,7 @@ ToDo/Notes:
29 compiled without debug. This avoids a possible denial of service 29 compiled without debug. This avoids a possible denial of service
30 attack. Thanks to Carl-Daniel Hailfinger from SuSE for pointing this 30 attack. Thanks to Carl-Daniel Hailfinger from SuSE for pointing this
31 out. 31 out.
32 - Fix compilation warnings on ia64. (Randy Dunlap)
32 - Use i_size_read() in fs/ntfs/attrib.c::ntfs_attr_set(). 33 - Use i_size_read() in fs/ntfs/attrib.c::ntfs_attr_set().
33 - Use i_size_read() in fs/ntfs/logfile.c::ntfs_{check,empty}_logfile(). 34 - Use i_size_read() in fs/ntfs/logfile.c::ntfs_{check,empty}_logfile().
34 - Use i_size_read() once and then use the cached value in 35 - Use i_size_read() once and then use the cached value in
diff --git a/fs/ntfs/aops.c b/fs/ntfs/aops.c
index 2b4b8b9e8796..2a7cba258cca 100644
--- a/fs/ntfs/aops.c
+++ b/fs/ntfs/aops.c
@@ -965,7 +965,8 @@ lock_retry_remap:
965 "attribute type 0x%x) because " 965 "attribute type 0x%x) because "
966 "its location on disk could " 966 "its location on disk could "
967 "not be determined (error " 967 "not be determined (error "
968 "code %lli).", (s64)block << 968 "code %lli).",
969 (long long)block <<
969 bh_size_bits >> 970 bh_size_bits >>
970 vol->mft_record_size_bits, 971 vol->mft_record_size_bits,
971 ni->mft_no, ni->type, 972 ni->mft_no, ni->type,
diff --git a/fs/ntfs/debug.c b/fs/ntfs/debug.c
index 6fb6bb5e3723..807150e2c2b9 100644
--- a/fs/ntfs/debug.c
+++ b/fs/ntfs/debug.c
@@ -164,14 +164,17 @@ void ntfs_debug_dump_runlist(const runlist_element *rl)
164 if (index > -LCN_ENOENT - 1) 164 if (index > -LCN_ENOENT - 1)
165 index = 3; 165 index = 3;
166 printk(KERN_DEBUG "%-16Lx %s %-16Lx%s\n", 166 printk(KERN_DEBUG "%-16Lx %s %-16Lx%s\n",
167 (rl + i)->vcn, lcn_str[index], 167 (long long)(rl + i)->vcn, lcn_str[index],
168 (rl + i)->length, (rl + i)->length ? 168 (long long)(rl + i)->length,
169 "" : " (runlist end)"); 169 (rl + i)->length ? "" :
170 " (runlist end)");
170 } else 171 } else
171 printk(KERN_DEBUG "%-16Lx %-16Lx %-16Lx%s\n", 172 printk(KERN_DEBUG "%-16Lx %-16Lx %-16Lx%s\n",
172 (rl + i)->vcn, (rl + i)->lcn, 173 (long long)(rl + i)->vcn,
173 (rl + i)->length, (rl + i)->length ? 174 (long long)(rl + i)->lcn,
174 "" : " (runlist end)"); 175 (long long)(rl + i)->length,
176 (rl + i)->length ? "" :
177 " (runlist end)");
175 if (!(rl + i)->length) 178 if (!(rl + i)->length)
176 break; 179 break;
177 } 180 }
diff --git a/fs/ntfs/inode.c b/fs/ntfs/inode.c
index cfca17384115..7ae647c640bb 100644
--- a/fs/ntfs/inode.c
+++ b/fs/ntfs/inode.c
@@ -2518,18 +2518,18 @@ int ntfs_write_inode(struct inode *vi, int sync)
2518 nt = utc2ntfs(vi->i_mtime); 2518 nt = utc2ntfs(vi->i_mtime);
2519 if (si->last_data_change_time != nt) { 2519 if (si->last_data_change_time != nt) {
2520 ntfs_debug("Updating mtime for inode 0x%lx: old = 0x%llx, " 2520 ntfs_debug("Updating mtime for inode 0x%lx: old = 0x%llx, "
2521 "new = 0x%llx", vi->i_ino, 2521 "new = 0x%llx", vi->i_ino, (long long)
2522 sle64_to_cpu(si->last_data_change_time), 2522 sle64_to_cpu(si->last_data_change_time),
2523 sle64_to_cpu(nt)); 2523 (long long)sle64_to_cpu(nt));
2524 si->last_data_change_time = nt; 2524 si->last_data_change_time = nt;
2525 modified = TRUE; 2525 modified = TRUE;
2526 } 2526 }
2527 nt = utc2ntfs(vi->i_ctime); 2527 nt = utc2ntfs(vi->i_ctime);
2528 if (si->last_mft_change_time != nt) { 2528 if (si->last_mft_change_time != nt) {
2529 ntfs_debug("Updating ctime for inode 0x%lx: old = 0x%llx, " 2529 ntfs_debug("Updating ctime for inode 0x%lx: old = 0x%llx, "
2530 "new = 0x%llx", vi->i_ino, 2530 "new = 0x%llx", vi->i_ino, (long long)
2531 sle64_to_cpu(si->last_mft_change_time), 2531 sle64_to_cpu(si->last_mft_change_time),
2532 sle64_to_cpu(nt)); 2532 (long long)sle64_to_cpu(nt));
2533 si->last_mft_change_time = nt; 2533 si->last_mft_change_time = nt;
2534 modified = TRUE; 2534 modified = TRUE;
2535 } 2535 }
@@ -2537,8 +2537,8 @@ int ntfs_write_inode(struct inode *vi, int sync)
2537 if (si->last_access_time != nt) { 2537 if (si->last_access_time != nt) {
2538 ntfs_debug("Updating atime for inode 0x%lx: old = 0x%llx, " 2538 ntfs_debug("Updating atime for inode 0x%lx: old = 0x%llx, "
2539 "new = 0x%llx", vi->i_ino, 2539 "new = 0x%llx", vi->i_ino,
2540 sle64_to_cpu(si->last_access_time), 2540 (long long)sle64_to_cpu(si->last_access_time),
2541 sle64_to_cpu(nt)); 2541 (long long)sle64_to_cpu(nt));
2542 si->last_access_time = nt; 2542 si->last_access_time = nt;
2543 modified = TRUE; 2543 modified = TRUE;
2544 } 2544 }
diff --git a/fs/ntfs/lcnalloc.c b/fs/ntfs/lcnalloc.c
index 8db4492b139c..f2b7f8582c59 100644
--- a/fs/ntfs/lcnalloc.c
+++ b/fs/ntfs/lcnalloc.c
@@ -763,7 +763,7 @@ out:
763 "could allocate up to 0x%llx " 763 "could allocate up to 0x%llx "
764 "clusters.", 764 "clusters.",
765 (unsigned long long)rl[0].lcn, 765 (unsigned long long)rl[0].lcn,
766 (unsigned long long)count - clusters); 766 (unsigned long long)(count - clusters));
767 /* Deallocate all allocated clusters. */ 767 /* Deallocate all allocated clusters. */
768 ntfs_debug("Attempting rollback..."); 768 ntfs_debug("Attempting rollback...");
769 err2 = ntfs_cluster_free_from_rl_nolock(vol, rl); 769 err2 = ntfs_cluster_free_from_rl_nolock(vol, rl);
diff --git a/fs/ntfs/mft.c b/fs/ntfs/mft.c
index 0975d738834c..66ef6e275a48 100644
--- a/fs/ntfs/mft.c
+++ b/fs/ntfs/mft.c
@@ -1802,7 +1802,7 @@ static int ntfs_mft_data_extend_allocation_nolock(ntfs_volume *vol)
1802 return PTR_ERR(rl); 1802 return PTR_ERR(rl);
1803 } 1803 }
1804 mft_ni->runlist.rl = rl; 1804 mft_ni->runlist.rl = rl;
1805 ntfs_debug("Allocated %lli clusters.", nr); 1805 ntfs_debug("Allocated %lli clusters.", (long long)nr);
1806 /* Find the last run in the new runlist. */ 1806 /* Find the last run in the new runlist. */
1807 for (; rl[1].length; rl++) 1807 for (; rl[1].length; rl++)
1808 ; 1808 ;