mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
print: take the message as a pointer to const
The strings are literals in code space, so the parameter can say so. Drops six warning 357 from the build.
This commit is contained in:
1 parent
c1df7c23d1
commit
c39cc421a7
3 files changed
+7
-7
No files matched your search
+1
-1
@@ -47,7 +47,7 @@ static void out_putc(char c) {
|
||||
|
||||
/* --- mocked print helpers (signatures match rtl837x_common.h post-shim) ---- */
|
||||
void write_char(char c) { out_putc(c); }
|
||||
void print_string(char *p) { while (*p) out_putc(*p++); }
|
||||
void print_string(const char *p) { while (*p) out_putc(*p++); }
|
||||
void print_string_x(char *p) { while (*p) out_putc(*p++); }
|
||||
void print_cmd_prompt(void) { print_string((char *)"> "); }
|
||||
void itoa(uint8_t v) { /* firmware prints a decimal number */
|
||||
|
||||
Reference in new issue
Block a user