]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit - repair/phase7.c
xfs_repair: add printf format checking and fix the fallout
authorChristoph Hellwig <hch@infradead.org>
Tue, 30 Aug 2011 08:57:37 +0000 (08:57 +0000)
committerAlex Elder <aelder@sgi.com>
Wed, 21 Sep 2011 18:50:33 +0000 (13:50 -0500)
commit5d1b7f0ff45fa3ef09163ebd848d192160dea79d
tree8cd02cb827f43152782508173307eee86dedda5d
parent7c8b1f6adcbee85fd82a605d8dd980de2c0386f9
xfs_repair: add printf format checking and fix the fallout

Add the gcc printf like attribute to the xfs_repair-internal logging
helpers, and fix the massive fallout.  A large part of it is dealing
with the correct format for fixed size 64-bit types, but there were
a lot of real bug in there, including some that lead to crashed when
repairing certain corrupted filesystems on ARM based systems.

[Moved in a few more warning fixes from the next patch. -Alex]

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reported-by: Anisse Astier <anisse@astier.eu>
Signed-off-by: Alex Elder <aelder@sgi.com>
19 files changed:
include/linux.h
repair/agheader.c
repair/attr_repair.c
repair/bmap.c
repair/dino_chunks.c
repair/dinode.c
repair/dir.c
repair/dir2.c
repair/err_protos.h
repair/incore.c
repair/phase2.c
repair/phase3.c
repair/phase4.c
repair/phase6.c
repair/phase7.c
repair/progress.c
repair/sb.c
repair/scan.c
repair/xfs_repair.c