1. 13 Mar, 2012 15 commits
  2. 12 Mar, 2012 2 commits
    • Joe Perches's avatar
      net: Convert printks to pr_<level> · 058bd4d2
      Joe Perches authored
      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: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      058bd4d2
    • Maciej Żenczykowski's avatar
      net: get rid of some pointless casts to sockaddr · 43db362d
      Maciej Żenczykowski authored
      The following 4 functions:
        move_addr_to_kernel
        move_addr_to_user
        verify_iovec
        verify_compat_iovec
      are always effectively called with a sockaddr_storage.
      
      Make this explicit by changing their signature.
      
      This removes a large number of casts from sockaddr_storage to sockaddr.
      Signed-off-by: default avatarMaciej Żenczykowski <maze@google.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      43db362d
  3. 11 Mar, 2012 9 commits
  4. 10 Mar, 2012 14 commits