net: Convert printks to pr_<level>
Use a more current kernel messaging style. Convert a printk block to print_hex_dump. Coalesce formats, align arguments. Use %s, __func__ instead of embedding function names. Some messages that were prefixed with <foo>_close are now prefixed with <foo>_fini. Some ah4 and esp messages are now not prefixed with "ip ". The intent of this patch is to later add something like #define pr_fmt(fmt) "IPv4: " fmt. to standardize the output messages. Text size is trivially reduced. (x86-32 allyesconfig) $ size net/ipv4/built-in.o* text data bss dec hex filename 887888 31558 249696 1169142 11d6f6 net/ipv4/built-in.o.new 887934 31558 249800 1169292 11d78c net/ipv4/built-in.o.old Signed-off-by:Joe Perches <joe@perches.com> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- net/ipv4/af_inet.c 11 additions, 14 deletionsnet/ipv4/af_inet.c
- net/ipv4/ah4.c 7 additions, 7 deletionsnet/ipv4/ah4.c
- net/ipv4/esp4.c 4 additions, 4 deletionsnet/ipv4/esp4.c
- net/ipv4/fib_frontend.c 3 additions, 3 deletionsnet/ipv4/fib_frontend.c
- net/ipv4/fib_semantics.c 1 addition, 1 deletionnet/ipv4/fib_semantics.c
- net/ipv4/fib_trie.c 2 additions, 3 deletionsnet/ipv4/fib_trie.c
- net/ipv4/icmp.c 8 additions, 11 deletionsnet/ipv4/icmp.c
- net/ipv4/ip_fragment.c 1 addition, 2 deletionsnet/ipv4/ip_fragment.c
- net/ipv4/ip_gre.c 3 additions, 3 deletionsnet/ipv4/ip_gre.c
- net/ipv4/ip_input.c 2 additions, 2 deletionsnet/ipv4/ip_input.c
- net/ipv4/ip_options.c 1 addition, 1 deletionnet/ipv4/ip_options.c
- net/ipv4/ipcomp.c 4 additions, 4 deletionsnet/ipv4/ipcomp.c
- net/ipv4/ipconfig.c 55 additions, 55 deletionsnet/ipv4/ipconfig.c
- net/ipv4/ipip.c 2 additions, 2 deletionsnet/ipv4/ipip.c
- net/ipv4/ipmr.c 2 additions, 2 deletionsnet/ipv4/ipmr.c
- net/ipv4/ping.c 9 additions, 9 deletionsnet/ipv4/ping.c
- net/ipv4/raw.c 2 additions, 5 deletionsnet/ipv4/raw.c
- net/ipv4/route.c 18 additions, 25 deletionsnet/ipv4/route.c
- net/ipv4/tcp.c 3 additions, 4 deletionsnet/ipv4/tcp.c
- net/ipv4/tcp_cong.c 3 additions, 4 deletionsnet/ipv4/tcp_cong.c
Loading
Please register or sign in to comment