[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1426178623.30327.120.camel@freescale.com>
Date: Thu, 12 Mar 2015 11:43:43 -0500
From: Scott Wood <scottwood@...escale.com>
To: Sergei Shtylyov <sergei.shtylyov@...entembedded.com>
CC: <trivial@...nel.org>, <linux-kernel@...r.kernel.org>,
<linux-usb@...r.kernel.org>, Felipe Balbi <balbi@...com>
Subject: Re: [PATCH 18/22] usb: gadget: serial: %pF is only for function
pointers
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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists