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
+3
-3
@@ -303,19 +303,19 @@ void itoa_short(uint16_t v)
|
||||
}
|
||||
|
||||
|
||||
void print_string(__code char *p)
|
||||
void print_string(__code const char *p)
|
||||
{
|
||||
while (*p)
|
||||
write_char(*p++);
|
||||
}
|
||||
|
||||
void print_string_no_syslog(__code char *p)
|
||||
void print_string_no_syslog(__code const char *p)
|
||||
{
|
||||
while (*p)
|
||||
write_char_no_syslog(*p++);
|
||||
}
|
||||
|
||||
void print_string_newline_no_syslog(__code char *p)
|
||||
void print_string_newline_no_syslog(__code const char *p)
|
||||
{
|
||||
write_char_no_syslog('\n');
|
||||
print_string_no_syslog(p);
|
||||
|
||||
Reference in new issue
Block a user