linux-gpio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Russell King (Oracle)" <linux@armlinux.org.uk>
To: Hector Martin <marcan@marcan.st>, Petr Mladek <pmladek@suse.com>
Cc: Arnd Bergmann <arnd@arndb.de>, Lee Jones <lee@kernel.org>,
	Linus Walleij <linus.walleij@linaro.org>,
	Alyssa Rosenzweig <alyssa@rosenzweig.io>,
	Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
	asahi@lists.linux.dev, Bartosz Golaszewski <brgl@bgdev.pl>,
	devicetree@vger.kernel.org, Jonathan Corbet <corbet@lwn.net>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org,
	linux-gpio@vger.kernel.org,
	Rasmus Villemoes <linux@rasmusvillemoes.dk>,
	Rob Herring <robh+dt@kernel.org>,
	Sergey Senozhatsky <senozhatsky@chromium.org>,
	Steven Rostedt <rostedt@goodmis.org>,
	Sven Peter <sven@svenpeter.dev>
Subject: Re: [PATCH 4/7] lib/vsprintf: Add support for generic FOURCCs by extending %p4cc
Date: Wed, 19 Oct 2022 12:48:55 +0100	[thread overview]
Message-ID: <Y0/kJwpbvbeul8n3@shell.armlinux.org.uk> (raw)
In-Reply-To: <Y0/Kt9CW5vYcxHhK@alley>

On Wed, Oct 19, 2022 at 12:00:23PM +0200, Petr Mladek wrote:
> On Tue 2022-09-06 14:19:44, Russell King wrote:
> > From: Hector Martin <marcan@marcan.st>
> > 
... 
> > +Generic FourCC code
> > +-------------------
> > +
> > +::
> > +	%p4c[hnbl]	gP00 (0x67503030)
> > +
> > +Print a generic FourCC code, as both ASCII characters and its numerical
> > +value as hexadecimal.
> > +
> > +The additional ``h``, ``r``, ``b``, and ``l`` specifiers are used to specify
> > +host, reversed, big or little endian order data respectively. Host endian
> > +order means the data is interpreted as a 32-bit integer and the most
> > +significant byte is printed first; that is, the character code as printed
> > +matches the byte order stored in memory on big-endian systems, and is reversed
> > +on little-endian systems.
> > +
> > +Passed by reference.
> > +
> > +Examples for a little-endian machine, given &(u32)0x67503030::
> > +
> > +	%p4ch	gP00 (0x67503030)
> > +	%p4cl	gP00 (0x67503030)
> > +	%p4cb	00Pg (0x30305067)
> > +	%p4cr	00Pg (0x30305067)
> 
> Nit: I would prefer to keep the same order (h,r,b,l) everywhere.
> 
>      I guess that you wanted to show exactly the same results next
>      to each other. But it is not the case on big-endian anyway.

This is straight from the Asahi kernel tree, and is unmodified. I'm
guessing you're use of "you" here refers to Hector rather than me.

So, Hector, any opinions on Petr's comments please?

Thanks.

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!

  parent reply	other threads:[~2022-10-19 12:14 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-06 13:18 [PATCH v2 0/7] Add Apple Mac System Management Controller GPIOs Russell King (Oracle)
2022-09-06 13:19 ` [PATCH 1/7] dt-bindings: mfd: add binding for Apple Mac System Management Controller Russell King (Oracle)
2022-09-06 14:04   ` Mark Kettenis
2022-09-07 15:41   ` Rob Herring
2022-09-06 13:19 ` [PATCH 2/7] dt-bindings: gpio: add binding for the GPIO block for Apple Mac SMC Russell King (Oracle)
2022-09-06 14:05   ` Mark Kettenis
2022-09-07 15:38   ` Rob Herring
2022-09-08 12:17   ` Krzysztof Kozlowski
2022-09-08 14:25     ` Russell King (Oracle)
2022-09-06 13:19 ` [PATCH 3/7] soc: apple: rtkit: Add apple_rtkit_poll Russell King
2022-09-06 13:19 ` [PATCH 4/7] lib/vsprintf: Add support for generic FOURCCs by extending %p4cc Russell King
2022-09-06 22:11   ` Rasmus Villemoes
2022-10-19 10:00   ` Petr Mladek
2022-10-19 11:20     ` Andy Shevchenko
2022-10-19 11:48     ` Russell King (Oracle) [this message]
2022-10-24  4:53       ` Hector Martin
2022-09-06 13:19 ` [PATCH 5/7] platform/apple: Add new Apple Mac SMC driver Russell King
2022-09-06 13:39   ` Sven Peter
2022-09-06 13:19 ` [PATCH 6/7] gpio: Add new gpio-macsmc driver for Apple Macs Russell King
2022-09-06 13:40   ` Sven Peter
2022-09-06 13:20 ` [PATCH 7/7] arm64: dts: apple: Add SMC node to t8103/t6001 devicetrees Russell King
2022-09-06 13:42   ` Sven Peter
2022-09-08 16:46     ` Russell King (Oracle)
2022-09-08  8:03   ` Janne Grunau
2022-09-06 13:38 ` [PATCH v2 0/7] Add Apple Mac System Management Controller GPIOs Linus Walleij
2022-09-07 10:02 ` Bartosz Golaszewski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Y0/kJwpbvbeul8n3@shell.armlinux.org.uk \
    --to=linux@armlinux.org.uk \
    --cc=alyssa@rosenzweig.io \
    --cc=andriy.shevchenko@linux.intel.com \
    --cc=arnd@arndb.de \
    --cc=asahi@lists.linux.dev \
    --cc=brgl@bgdev.pl \
    --cc=corbet@lwn.net \
    --cc=devicetree@vger.kernel.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=lee@kernel.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux@rasmusvillemoes.dk \
    --cc=marcan@marcan.st \
    --cc=pmladek@suse.com \
    --cc=robh+dt@kernel.org \
    --cc=rostedt@goodmis.org \
    --cc=senozhatsky@chromium.org \
    --cc=sven@svenpeter.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).