From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AAEF4C4332F for ; Wed, 19 Oct 2022 11:50:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=3ezbkIKy/AKC1HAhTXRVYUsunTWWPooW5JVkoa4M7F8=; b=zjQSIRly5YRpT8 0djmp3js7IIs3H9vweIWNQswLmBsGiEmYSPoy2BfaUYGf8Nc1iGGy32/fgqmU7Twi67ZM7At9+zO9 WbfalCZpPn6wKjkMe73vIXkEaQAzC5Vz3SGTkzMXzFBX0ak0IsAKE+l7XRAPzpXS1hXSOmNrI92VR tHyTiladx36k/XhODaZj+dUitAFx8UAvcAr1qb2h4lXrLKpu2SxakCqBX0ORP1qxC904MX+xlN07P 8pKB+5ZfdcjesfAIekvjlQ5arAfNJCok+eQE1Y52K9Va+VEbOK/KuS6kGURS8IVyLcNlAZMkBb0BN lSdAHEl95LmLbhyE4hzQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ol7Zq-0011Zi-4O; Wed, 19 Oct 2022 11:49:39 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ol7Zj-0011Tf-Lq for linux-arm-kernel@lists.infradead.org; Wed, 19 Oct 2022 11:49:34 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Hr6GqhiNot3Wp0AyCg0faopd7+PRJ3WvXflOrKZONA4=; b=YFxyjHqd72qFv1ZmqquSjQj3Ni D3wXXvK6M3WA1rk7s4+NX15Uz6XwiHA8v4FNuggbDx5WYXp54ANzsSwSuOZMgMQbrJixNWjYc5M9Y UIFKPUj4d16f7o4LNoZ2EyKDedNZAK/z6bu5xJpI2vvu2zpyFRVWjrxOjAarxcMzPsvpJ9NDMmblH P7L50yGZjjEqvCOICBap4c2fxBzrest7PZ4oh7k0nYwLCa6lw67T1MJkkxDCIsLXE9o+djXQEx5DX BmUCmODre+YPvgPq0s67x3crjTk2KRr4w0v9FlaReFO11py7jYHZ2DTuIRNfB0VHsgoZlYL3FXxL4 zVAJ4jjw==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:34794) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1ol7ZF-0005bK-1u; Wed, 19 Oct 2022 12:49:02 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1ol7Z9-00027o-Rf; Wed, 19 Oct 2022 12:48:55 +0100 Date: Wed, 19 Oct 2022 12:48:55 +0100 From: "Russell King (Oracle)" To: Hector Martin , Petr Mladek Cc: Arnd Bergmann , Lee Jones , Linus Walleij , Alyssa Rosenzweig , Andy Shevchenko , asahi@lists.linux.dev, Bartosz Golaszewski , devicetree@vger.kernel.org, Jonathan Corbet , Krzysztof Kozlowski , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-gpio@vger.kernel.org, Rasmus Villemoes , Rob Herring , Sergey Senozhatsky , Steven Rostedt , Sven Peter Subject: Re: [PATCH 4/7] lib/vsprintf: Add support for generic FOURCCs by extending %p4cc Message-ID: References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221019_044932_801553_23D9140E X-CRM114-Status: GOOD ( 19.02 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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 > > ... > > +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! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel