Re: [PATCH 18/22] usb: gadget: serial: %pF is only for function pointers

From: Scott Wood
Date: Thu Mar 12 2015 - 12:44:25 EST


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


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/