Skip to content
  • 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
    	printk(...);
    	printk_symbol(addr);
    	printk("\n");
    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>
    b0d33c2b