Joe Perches
a9a79dfec2
ata: Convert ata_<foo>_printk(KERN_<LEVEL> to ata_<foo>_<level>
Saves text by removing nearly duplicated text format strings by
creating ata_<foo>_printk functions and printf extension %pV.
ata defconfig size shrinks ~5% (~8KB), allyesconfig ~2.5% (~13KB)
Format string duplication comes from:
#define ata_link_printk(link, lv, fmt, args...) do { \
if (sata_pmp_attached((link)->ap) || (link)->ap->slave_link) \
printk("%sata%u.%02u: "fmt, lv, (link)->ap->print_id, \
(link)->pmp , ##args); \
else \
printk("%sata%u: "fmt, lv, (link)->ap->print_id , ##args); \
} while(0)
Coalesce long formats.
$ size drivers/ata/built-in.*
text data bss dec hex filename
544969 73893 116584 735446 b38d6 drivers/ata/built-in.allyesconfig.ata.o
558429 73893 117864 750186 b726a drivers/ata/built-in.allyesconfig.dev_level.o
141328 14689 4220 160237 271ed drivers/ata/built-in.defconfig.ata.o
149567 14689 4220 168476 2921c drivers/ata/built-in.defconfig.dev_level.o
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
2011-07-23 17:57:36 -04:00
..
2011-07-14 00:16:38 -04:00
2011-05-26 10:33:34 +01:00
2011-07-23 17:57:36 -04:00
2011-05-20 13:43:21 -07:00
2011-07-12 11:08:01 +10:00
2011-05-26 17:12:32 -07:00
2011-06-30 10:10:50 +02:00
2011-06-17 12:40:36 -04:00
2011-06-02 05:29:19 +09:00
2011-07-13 07:44:27 +01:00
2011-05-31 15:26:42 +09:00
2011-06-07 12:02:00 -07:00
2011-07-10 17:03:04 -04:00
2011-05-29 11:18:09 -07:00
2011-06-30 07:43:27 +08:00
2011-06-14 15:03:07 +09:00
2011-05-26 17:12:37 -07:00
2011-07-10 12:53:27 +02:00
2011-06-28 11:15:36 -07:00
2011-07-15 14:03:30 -06:00
2011-07-21 11:07:18 -07:00
2011-06-24 13:41:11 +02:00
2011-07-17 18:39:19 +02:00
2011-07-07 16:29:29 -07:00
2011-06-11 15:06:48 -07:00
2011-07-04 15:53:28 -07:00
2011-07-05 10:38:43 +02:00
2011-06-17 15:27:32 -04:00
2011-07-08 21:14:44 -07:00
2011-05-23 09:12:26 -07:00
2011-06-28 16:59:42 +10:00
2011-07-18 09:12:21 -07:00
2011-05-23 09:12:26 -07:00
2011-07-08 21:14:44 -07:00
2011-06-28 11:15:36 -07:00
2011-07-13 16:47:31 -07:00
2011-06-22 06:08:48 -05:00
2011-07-18 11:48:28 -07:00
2011-05-25 00:08:17 +01:00
2011-05-31 16:33:34 +02:00
2011-05-26 13:19:00 -07:00
2011-07-08 15:49:20 -07:00
2011-07-11 14:26:34 +08:00
2011-07-11 09:52:35 -04:00
2011-05-27 10:12:35 -07:00
2011-06-01 19:29:10 -07:00
2011-05-18 02:55:22 -07:00
2011-07-08 19:14:58 +01:00
2011-06-27 18:00:12 -07:00
2011-06-06 14:14:56 +02:00
2011-07-03 14:26:24 -05:00
2011-06-14 15:15:25 +09:00
2011-07-06 15:03:08 +09:00
2011-07-07 13:06:08 -04:00
2011-07-06 12:16:49 -07:00
2011-06-24 00:09:16 +00:00
2011-07-04 15:54:18 -07:00
2011-07-07 13:29:33 -07:00
2011-05-30 11:14:15 +09:30
2011-07-04 16:02:48 +09:00
2011-05-30 11:14:16 +09:30
2011-07-08 21:14:44 -07:00
2011-07-17 12:40:08 +00:00
2011-06-20 09:01:33 -07:00
2011-05-23 13:01:00 -07:00
2011-05-28 12:35:15 -07:00