]> git.karo-electronics.de Git - karo-tx-linux.git/commit
treewide: use __printf not __attribute__((format(printf,...)))
authorJoe Perches <joe@perches.com>
Wed, 5 Oct 2011 00:43:29 +0000 (11:43 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 6 Oct 2011 05:59:56 +0000 (16:59 +1100)
commitf0fe7f58f6a6287c54c2ac8d6d9654f116bd591e
tree4adfb2f7c42a1675c0faf41e4f7af24e5089b8f8
parent3af34809d6ea2a4c3034f04abba40dec10190fc0
treewide: use __printf not __attribute__((format(printf,...)))

Standardize the style for compiler based printf format verification.
Standardized the location of __printf too.

Done via script and a little typing.

$ grep -rPl --include=*.[ch] -w "__attribute__" * | \
  grep -vP "^(tools|scripts|include/linux/compiler-gcc.h)" | \
  xargs perl -n -i -e 'local $/; while (<>) { s/\b__attribute__\s*\(\s*\(\s*format\s*\(\s*printf\s*,\s*(.+)\s*,\s*(.+)\s*\)\s*\)\s*\)/__printf($1, $2)/g ; print; }'

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
72 files changed:
arch/alpha/boot/misc.c
arch/alpha/include/asm/console.h
arch/frv/include/asm/system.h
arch/ia64/include/asm/mca.h
arch/m68k/include/asm/natfeat.h
arch/mn10300/include/asm/gdb-stub.h
arch/powerpc/boot/ps3.c
arch/powerpc/boot/stdio.h
arch/powerpc/include/asm/udbg.h
arch/s390/include/asm/debug.h
arch/um/include/shared/user.h
drivers/isdn/hisax/callc.c
drivers/isdn/hisax/hisax.h
drivers/isdn/hisax/isdnl1.h
drivers/isdn/hisax/isdnl3.c
drivers/isdn/hisax/st5481_d.c
drivers/net/ethernet/mellanox/mlx4/mlx4_en.h
drivers/net/wireless/ath/ath.h
drivers/net/wireless/ath/ath5k/debug.h
drivers/net/wireless/ath/ath6kl/debug.h
drivers/net/wireless/b43/b43.h
drivers/net/wireless/b43legacy/b43legacy.h
drivers/staging/iio/trigger.h
fs/ecryptfs/ecryptfs_kernel.h
fs/ext2/ext2.h
fs/ext4/ext4.h
fs/fat/fat.h
fs/gfs2/glock.h
fs/hpfs/hpfs_fn.h
fs/nilfs2/nilfs.h
fs/ntfs/debug.h
fs/ocfs2/super.h
fs/partitions/ldm.c
fs/udf/udfdecl.h
fs/ufs/ufs.h
fs/xfs/xfs_message.h
include/asm-generic/bug.h
include/drm/drmP.h
include/linux/audit.h
include/linux/blktrace_api.h
include/linux/device.h
include/linux/dynamic_debug.h
include/linux/ext3_fs.h
include/linux/fs.h
include/linux/fscache-cache.h
include/linux/gameport.h
include/linux/kallsyms.h
include/linux/kdb.h
include/linux/kernel.h
include/linux/kexec.h
include/linux/kmod.h
include/linux/kobject.h
include/linux/kthread.h
include/linux/libata.h
include/linux/mmiotrace.h
include/linux/netdevice.h
include/linux/printk.h
include/linux/quotaops.h
include/linux/seq_file.h
include/linux/trace_seq.h
include/net/bluetooth/bluetooth.h
include/net/netfilter/nf_log.h
include/net/sock.h
include/sound/core.h
include/sound/info.h
include/sound/seq_kernel.h
include/xen/hvc-console.h
include/xen/xenbus.h
net/nfc/nfc.h
net/rds/rds.h
net/sunrpc/svc.c
sound/firewire/cmp.c