[enhancement] Add string information for error (#3186)

* [enhancement]Add string information for error

* Update src/kservice.c

* Update src/kservice.c

Co-authored-by: Man, Jianting (Meco) <920369182@qq.com>

* remove %m

Signed-off-by: a1012112796 <1012112796@qq.com>

Co-authored-by: Meco Man <920369182@qq.com>
This commit is contained in:
a1012112796
2022-06-29 14:21:21 +08:00
committed by GitHub
parent 5b00165f6e
commit 697bf139b2
3 changed files with 38 additions and 4 deletions

View File

@@ -592,6 +592,7 @@ rt_device_t rt_console_get_device(void);
rt_err_t rt_get_errno(void);
void rt_set_errno(rt_err_t no);
int *_rt_errno(void);
const char *rt_strerror(rt_err_t error);
#if !defined(RT_USING_NEWLIB) && !defined(_WIN32)
#ifndef errno
#define errno *_rt_errno()