Commit f32f7336 authored by Nathan Scott's avatar Nathan Scott

[XFS] Fix some compiler warnings, mark cmn_err as printflike.

SGI Modid: xfs-linux:xfs-kern:171451a
parent 34187d9e
/*
* Copyright (c) 2000-2002 Silicon Graphics, Inc. All Rights Reserved.
* Copyright (c) 2000-2004 Silicon Graphics, Inc. All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
......@@ -42,6 +42,7 @@
#define CE_PANIC 0 /* panic */
extern void icmn_err(int, char *, va_list);
/* PRINTFLIKE2 */
extern void cmn_err(int, char *, ...);
#ifndef STATIC
......
/*
* Copyright (c) 2000-2002 Silicon Graphics, Inc. All Rights Reserved.
* Copyright (c) 2000-2004 Silicon Graphics, Inc. All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
......@@ -1053,9 +1053,9 @@ xfs_buf_iodone_callbacks(
(time_after(jiffies, (lasttime + 5*HZ)))) {
lasttime = jiffies;
prdev("XFS write error in file system meta-data "
"block 0x%Lx in %s",
"block 0x%llx in %s",
XFS_BUF_TARGET(bp),
XFS_BUF_ADDR(bp), mp->m_fsname);
(__uint64_t)XFS_BUF_ADDR(bp), mp->m_fsname);
}
lasttarg = XFS_BUF_TARGET(bp);
......
/*
* Copyright (c) 2000-2003 Silicon Graphics, Inc. All Rights Reserved.
* Copyright (c) 2000-2004 Silicon Graphics, Inc. All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
......@@ -2166,9 +2166,9 @@ xfs_da_do_buf(
cmn_err(CE_ALERT,
"[%02d] br_startoff %lld br_startblock %lld br_blockcount %lld br_state %d\n",
i,
mapp[i].br_startoff,
mapp[i].br_startblock,
mapp[i].br_blockcount,
(long long)mapp[i].br_startoff,
(long long)mapp[i].br_startblock,
(long long)mapp[i].br_blockcount,
mapp[i].br_state);
}
}
......
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