[PATCH 2/2] vsprintf: document %JP format specifier as being barebox-specific
Ahmad Fatoum
a.fatoum at pengutronix.de
Mon Jan 6 01:19:06 PST 2025
%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 at 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
More information about the barebox
mailing list