1.优化错误码字符。

This commit is contained in:
MacRsh
2024-01-10 23:03:44 +08:00
parent be8efbadcf
commit 01dd617216

View File

@@ -100,6 +100,9 @@ MR_WEAK int mr_printf_output(const char *buf, size_t size)
if (desc < 0)
{
#ifndef MR_CFG_PRINTF_DEV_NAME
#define MR_CFG_PRINTF_DEV_NAME "serial1"
#endif /* MR_CFG_PRINTF_DEV_NAME */
#ifndef MR_USING_PRINTF_NONBLOCKING
desc = mr_dev_open(MR_CFG_PRINTF_DEV_NAME, MR_OFLAG_RDWR);
#else
@@ -148,7 +151,7 @@ const char *mr_strerror(int err)
switch (err)
{
case MR_EOK:
return "no error";
return "ok";
case MR_ENOMEM:
return "no enough memory";
case MR_EIO: