]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
device.h drivers/base/core.c Convert dev_<level> logging macros to functions
authorJoe Perches <joe@perches.com>
Sun, 27 Jun 2010 01:02:34 +0000 (01:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Jul 2010 17:40:17 +0000 (10:40 -0700)
commit99bcf217183e02ebae46373896fba7f12d588001
tree03210a8c57e33b2b5073f80f9a7f818c84f4c83a
parent7db6f5fb65a82af03229eef104dc9899c5eecf33
device.h drivers/base/core.c Convert dev_<level> logging macros to functions

Reduces an x86 defconfig text and data ~55k, .6% smaller.

$ size vmlinux*
   text    data     bss     dec     hex filename
7205273  716016 1366288 9287577  8db799 vmlinux
7258890  719768 1366288 9344946  8e97b2 vmlinux.master

Uses %pV and struct va_format
Format arguments are verified before printk

The dev_info macro is converted to _dev_info because there are
existing uses of variables named dev_info in the kernel tree
like drivers/net/pcmcia/pcnet_cs.c

A dev_info macro is created to call _dev_info

Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/base/core.c
include/linux/device.h