MCPcopy Create free account
hub / github.com/Simple-XX/SimpleKernel / PutStr

Function PutStr

src/include/kernel_log.hpp:82–90  ·  view source on GitHub ↗

通过 etl_putchar 输出字符串(空指针安全)

Source from the content-addressed store, hash-verified

80
81/// 通过 etl_putchar 输出字符串(空指针安全)
82__always_inline auto PutStr(const char* s) -> void {
83 if (!s) {
84 s = "(null)";
85 }
86 while (*s) {
87 etl_putchar(static_cast<unsigned char>(*s));
88 ++s;
89 }
90}
91
92/**
93 * @brief 将队列中所有条目输出至串口

Callers 2

TryDrainFunction · 0.85
RawPutFunction · 0.85

Calls 1

etl_putcharFunction · 0.50

Tested by

no test coverage detected