mirror of
https://github.com/espressif/openthread.git
synced 2026-06-06 05:24:51 +00:00
[notifier] define 'kEventStrings[]' as const pointer (#5673)
This commit is contained in:
committed by
GitHub
parent
968440da34
commit
5f956cfe95
@@ -239,7 +239,7 @@ const char *Notifier::EventToString(Event aEvent) const
|
||||
// To ensure no clipping of flag names in the logs, the returned
|
||||
// strings from this method should have shorter length than
|
||||
// `kMaxFlagNameLength` value.
|
||||
static const char *kEventStrings[] = {
|
||||
static const char *const kEventStrings[] = {
|
||||
"Ip6+", // kEventIp6AddressAdded (1 << 0)
|
||||
"Ip6-", // kEventIp6AddressRemoved (1 << 1)
|
||||
"Role", // kEventThreadRoleChanged (1 << 2)
|
||||
|
||||
Reference in New Issue
Block a user