From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH 2/2] vsprintf: document %JP format specifier as being barebox-specific
Date: Mon, 6 Jan 2025 10:19:06 +0100 [thread overview]
Message-ID: <20250106091906.3435166-2-a.fatoum@pengutronix.de> (raw)
In-Reply-To: <20250106091906.3435166-1-a.fatoum@pengutronix.de>
%JP was added before the documentation was adapted to differentiate
between format specifiers inherited from Linux and thus specific to
barebox. Move it to correctly indicate that this is a barebox extension.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
---
lib/vsprintf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/vsprintf.c b/lib/vsprintf.c
index edc3f4aa4fe0..cb42caebca16 100644
--- a/lib/vsprintf.c
+++ b/lib/vsprintf.c
@@ -510,12 +510,12 @@ char *device_node_string(char *buf, const char *end, const struct device_node *n
* C colon
* D dash
* N no separator
- * - 'JP' For a JSON path
* - 'M' For a 6-byte MAC address, it prints the address in the
* usual colon-separated hex notation
*
* Additionally, we support following barebox-specific format specifiers:
*
+ * - 'JP' For a JSON path
* - 'D' For EFI device paths
*/
static char *pointer(const char *fmt, char *buf, const char *end, const void *ptr,
--
2.39.5
next prev parent reply other threads:[~2025-01-06 9:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-01-06 9:19 [PATCH 1/2] include: rename printk.h to printf.h Ahmad Fatoum
2025-01-06 9:19 ` Ahmad Fatoum [this message]
2025-01-06 13:21 ` Sascha Hauer
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=20250106091906.3435166-2-a.fatoum@pengutronix.de \
--to=a.fatoum@pengutronix.de \
--cc=barebox@lists.infradead.org \
/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