* [PATCH] debug_ll: implement putws_ll
@ 2024-07-31 7:13 Ahmad Fatoum
2024-08-01 11:31 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2024-07-31 7:13 UTC (permalink / raw)
To: barebox
For use of low-level debugging of EFI-related functionality, let's
add a wchar_t version of puts_ll.
Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
---
include/debug_ll.h | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/include/debug_ll.h b/include/debug_ll.h
index 0128ab524a76..5ac8ae12ceb8 100644
--- a/include/debug_ll.h
+++ b/include/debug_ll.h
@@ -64,12 +64,27 @@ static inline void puts_ll(const char * str)
}
}
+static inline void putws_ll(const wchar_t * wstr)
+{
+ while (*wstr) {
+ if (*wstr == L'\n')
+ putc_ll('\r');
+
+ putc_ll(*wstr);
+ wstr++;
+ }
+}
+
#else
static inline void putc_ll(char value)
{
}
+static inline void putws_ll(const wchar_t * wstr)
+{
+}
+
static inline void puthexc_ll(unsigned char value)
{
}
--
2.39.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] debug_ll: implement putws_ll
2024-07-31 7:13 [PATCH] debug_ll: implement putws_ll Ahmad Fatoum
@ 2024-08-01 11:31 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2024-08-01 11:31 UTC (permalink / raw)
To: barebox, Ahmad Fatoum
On Wed, 31 Jul 2024 09:13:38 +0200, Ahmad Fatoum wrote:
> For use of low-level debugging of EFI-related functionality, let's
> add a wchar_t version of puts_ll.
>
>
Applied, thanks!
[1/1] debug_ll: implement putws_ll
https://git.pengutronix.de/cgit/barebox/commit/?id=e539093155f8 (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer@pengutronix.de>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-08-01 11:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-31 7:13 [PATCH] debug_ll: implement putws_ll Ahmad Fatoum
2024-08-01 11:31 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox