1. 13 Oct, 2014 1 commit
  2. 05 May, 2014 1 commit
  3. 23 Jan, 2014 1 commit
  4. 03 Sep, 2013 1 commit
    • Al Viro's avatar
      add formats for dentry/file pathnames · 4b6ccca7
      Al Viro authored
      New formats: %p[dD][234]?.  The next pointer is interpreted as struct dentry *
      or struct file * resp. ('d' => dentry, 'D' => file) and the last component(s)
      of pathname are printed (%pd => just the last one, %pd2 => the last two, etc.)
      Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
  5. 27 Aug, 2013 1 commit
  6. 08 Jul, 2013 1 commit
  7. 02 Jul, 2013 1 commit
    • Daniel Borkmann's avatar
      lib: vsprintf: add IPv4/v6 generic %p[Ii]S[pfs] format specifier · 10679643
      Daniel Borkmann authored
      In order to avoid making code that deals with printing both, IPv4 and
      IPv6 addresses, unnecessary complicated as for example ...
        if (sa.sa_family == AF_INET6)
          printk("... %pI6 ...", ..sin6_addr);
          printk("... %pI4 ...", ..sin_addr.s_addr);
      ... it would be better to introduce a format specifier that can deal
      with those kind of situations internally; just as we have a "struct
      sockaddr" for generic mapping into "struct sockaddr_in" or "struct
      sockaddr_in6" as e.g. done in "union sctp_addr". Then, we could
      reduce the above statement into something like:
        printk("... %pIS ..", &sockaddr);
      In case our pointer is NULL, pointer() then deals with that already at
      an earlier point in time internally. While we're at it, support for both
      %piS/%pIS, where 'S' stands for sockaddr, comes (almost) for free.
      Additionally to that, postfix specifiers 'p', 'f' and 's' are supported
      as suggested and initially implemented in 2009 by Joe Perches [1].
      Handling of those additional specifiers orientate on the initial RFC that
      was proposed. Also we support IPv6 compressed format specified by 'c' and
      various other IPv4 extensions as stated in the documentation part.
      Likely, there are many other areas than just SCTP in the kernel to make
      use of this extension as well.
       [1] http://patchwork.ozlabs.org/patch/31480/Signed-off-by: default avatarDaniel Borkmann <dborkman@redhat.com>
      CC: Joe Perches <joe@perches.com>
      CC: linux-kernel@vger.kernel.org
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
  8. 30 Apr, 2013 1 commit
    • Joe Perches's avatar
      vsprintf: Add extension %pSR - print_symbol replacement · b0d33c2b
      Joe Perches authored
      print_symbol takes a long and converts it to a function
      name and offset.  %pS does something similar, but doesn't
      translate the address via __builtin_extract_return_addr.
      %pSR does the translation.
      This will enable replacing multiple calls like
      with a single non-interleavable in dmesg
      	printk("... %pSR\n", (void *)addr);
      Update documentation too.
      Signed-off-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
  9. 08 Mar, 2013 1 commit
  10. 21 Feb, 2013 1 commit
  11. 05 Oct, 2012 1 commit
  12. 30 Jul, 2012 2 commits
  13. 15 Jun, 2011 1 commit
  14. 12 Nov, 2008 1 commit