]> git.karo-electronics.de Git - karo-tx-linux.git/commit
treewide: use __printf not __attribute__((format(printf,...)))
authorJoe Perches <joe@perches.com>
Wed, 28 Sep 2011 00:50:39 +0000 (10:50 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 4 Oct 2011 07:41:35 +0000 (18:41 +1100)
commitd930b635a39c03ffb7181d66f0eacd200d787bc9
treee145ca57c7262a0c477a87c545e55f4416d5d47a
parent1fbf617cd54eb587d79847def5051ac5f2954f7c
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 <>
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