diff options
| author | copilot-swe-agent[bot] <[email protected]> | 2026-06-09 06:58:20 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-06-09 06:58:20 +0000 |
| commit | 8400a74e54b0d360024c24823e3a8806d4f3ff8b (patch) | |
| tree | 4632c6fe4ee8ace55ef87ba12a400e2c9eef890c | |
| parent | 910af829633cbebb9f9ba045e5bc5f67a0879656 (diff) | |
Tidy console warning textcopilot/rt-thread-finsh-async-safe-validation-fix
| -rw-r--r-- | src/kservice.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kservice.c b/src/kservice.c index 991072bc0d..6ae99475f9 100644 --- a/src/kservice.c +++ b/src/kservice.c @@ -186,7 +186,7 @@ static rt_err_t _console_get_open_flags(rt_device_t device, rt_uint16_t *oflag) } else { - LOG_W("refuse to set device %.*s as console: missing console-safe output support", + LOG_W("refusing to set device %.*s as console: missing console-safe output support", RT_NAME_MAX, device->parent.name); return -RT_EINVAL; } @@ -196,7 +196,7 @@ static rt_err_t _console_get_open_flags(rt_device_t device, rt_uint16_t *oflag) if (access_mode != RT_DEVICE_OFLAG_WRONLY && access_mode != RT_DEVICE_OFLAG_RDWR) { - LOG_W("refuse to set device %.*s as console: invalid open flags 0x%04x", + LOG_W("refusing to set device %.*s as console: invalid open flags 0x%04x", RT_NAME_MAX, device->parent.name, console_oflag); return -RT_EINVAL; } |
