Tidy console warning text

This commit is contained in:
copilot-swe-agent[bot]
2026-06-09 06:58:20 +00:00
committed by GitHub
parent 910af82963
commit 8400a74e54
+2 -2
View File
@@ -186,7 +186,7 @@ static rt_err_t _console_get_open_flags(rt_device_t device, rt_uint16_t *oflag)
} }
else 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); RT_NAME_MAX, device->parent.name);
return -RT_EINVAL; 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 && if (access_mode != RT_DEVICE_OFLAG_WRONLY &&
access_mode != RT_DEVICE_OFLAG_RDWR) 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); RT_NAME_MAX, device->parent.name, console_oflag);
return -RT_EINVAL; return -RT_EINVAL;
} }