mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-22 05:01:27 +00:00
While all warnings on mismatches between printf-style format strings and argument lists were fixed on i386 and x86_64, gcc prints a large number of warnings about mismatches when compiling SCST on ppc64. The patch below fixes these by casting integer arguments to the type (long long unsigned int) where appropriate. This patch has been tested as follows: - Verified the patch by reading it. - Checked that make -s clean && make -s iscsi scst && make -s -C srpt did not trigger any compiler warnings about format strings on i386, x86_64 and ppc. - Checked that no previously fixed checkpatch warnings were reintroduced in the patch generated by generate-kernel-patch. - Checked that the patch generated by generate-kernel-patch still applies cleanly to the 2.6.25.4 kernel, and that the patched kernel tree still compiles, installs and boots fine. Additionally, this patch splits a kernel version preprocessor test from one into two lines, such that the generate-kernel-patch script can process the version check properly. Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@397 d57e44dd-8a1f-0410-8b47-8ef2f437770f