Commit 6ab65429 authored by Nathan Scott's avatar Nathan Scott

[XFS] Fix compiler warnings from older gcc versions wrt printfalike

arguments.

SGI-PV: 907752
SGI-Modid: xfs-linux-melb:xfs-kern:24901a
Signed-off-by: default avatarNathan Scott <nathans@sgi.com>
parent ca5ccbf9
...@@ -551,8 +551,10 @@ xfs_iomap_write_direct( ...@@ -551,8 +551,10 @@ xfs_iomap_write_direct(
"extent-state : %x \n", "extent-state : %x \n",
(ip->i_mount)->m_fsname, (ip->i_mount)->m_fsname,
(long long)ip->i_ino, (long long)ip->i_ino,
ret_imap->br_startblock, ret_imap->br_startoff, (unsigned long long)ret_imap->br_startblock,
ret_imap->br_blockcount,ret_imap->br_state); (unsigned long long)ret_imap->br_startoff,
(unsigned long long)ret_imap->br_blockcount,
ret_imap->br_state);
} }
return 0; return 0;
...@@ -722,8 +724,10 @@ xfs_iomap_write_delay( ...@@ -722,8 +724,10 @@ xfs_iomap_write_delay(
"extent-state : %x \n", "extent-state : %x \n",
(ip->i_mount)->m_fsname, (ip->i_mount)->m_fsname,
(long long)ip->i_ino, (long long)ip->i_ino,
ret_imap->br_startblock, ret_imap->br_startoff, (unsigned long long)ret_imap->br_startblock,
ret_imap->br_blockcount,ret_imap->br_state); (unsigned long long)ret_imap->br_startoff,
(unsigned long long)ret_imap->br_blockcount,
ret_imap->br_state);
} }
*ret_imap = imap[0]; *ret_imap = imap[0];
...@@ -854,7 +858,7 @@ xfs_iomap_write_allocate( ...@@ -854,7 +858,7 @@ xfs_iomap_write_allocate(
*/ */
for (i = 0; i < nimaps; i++) { for (i = 0; i < nimaps; i++) {
if ( !(io->io_flags & XFS_IOCORE_RT) && if (!(io->io_flags & XFS_IOCORE_RT) &&
!imap[i].br_startblock) { !imap[i].br_startblock) {
cmn_err(CE_PANIC,"Access to block zero: " cmn_err(CE_PANIC,"Access to block zero: "
"fs <%s> inode: %lld " "fs <%s> inode: %lld "
...@@ -862,9 +866,13 @@ xfs_iomap_write_allocate( ...@@ -862,9 +866,13 @@ xfs_iomap_write_allocate(
"blkcnt : %llx extent-state : %x \n", "blkcnt : %llx extent-state : %x \n",
(ip->i_mount)->m_fsname, (ip->i_mount)->m_fsname,
(long long)ip->i_ino, (long long)ip->i_ino,
(unsigned long long)
imap[i].br_startblock, imap[i].br_startblock,
(unsigned long long)
imap[i].br_startoff, imap[i].br_startoff,
imap[i].br_blockcount,imap[i].br_state); (unsigned long long)
imap[i].br_blockcount,
imap[i].br_state);
} }
if ((offset_fsb >= imap[i].br_startoff) && if ((offset_fsb >= imap[i].br_startoff) &&
(offset_fsb < (imap[i].br_startoff + (offset_fsb < (imap[i].br_startoff +
...@@ -970,8 +978,10 @@ xfs_iomap_write_unwritten( ...@@ -970,8 +978,10 @@ xfs_iomap_write_unwritten(
"%llx blkcnt : %llx extent-state : %x \n", "%llx blkcnt : %llx extent-state : %x \n",
(ip->i_mount)->m_fsname, (ip->i_mount)->m_fsname,
(long long)ip->i_ino, (long long)ip->i_ino,
imap.br_startblock,imap.br_startoff, (unsigned long long)imap.br_startblock,
imap.br_blockcount,imap.br_state); (unsigned long long)imap.br_startoff,
(unsigned long long)imap.br_blockcount,
imap.br_state);
} }
if ((numblks_fsb = imap.br_blockcount) == 0) { if ((numblks_fsb = imap.br_blockcount) == 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment