lkml.org 
[lkml]   [2015]   [Mar]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 18/22] usb: gadget: serial: %pF is only for function pointers
From
Date
On Thu, 2015-03-12 at 15:36 +0300, Sergei Shtylyov wrote:
> Hello.
>
> On 3/12/2015 6:13 AM, Scott Wood wrote:
>
> > Use %pS for actual addresses, otherwise you'll get bad output
>
> %pS or %ps?
>
> > on arches like ppc64 where %pF expects a function descriptor.
>
> %pF or %pf? And what is a function descriptor?

%pS where %pF appeared, and %ps where %pf appeared (yes, I'll fix the
copy-and-paste commit message). A function descriptor is a data
structure used when a function pointer needs to contain more information
than the instruction pointer to branch to, such as a TOC pointer.
Example:
http://refspecs.linuxfoundation.org/ELF/ppc64/PPC-elf64abi-1.9.html#FUNC-DES

-Scott




\
 
 \ /
  Last update: 2015-03-12 18:01    [W:1.129 / U:0.644 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site