In additional to adding "DCI_NUMA" to dbg_channel_names, a static assertion was added to verify that dbg_channel_names length is valid. Also added some comments to help developpers not to forget to add corresponding entries in dbg_channel_names.
FIxes dotnet/coreclr#21454
Commit migrated from https://github.com/dotnet/coreclr/commit/
9a59c40788d55aeb187df2319cd4450fdb01b6f9
DCI_SXS,
#endif // FEATURE_PAL_SXS
DCI_NUMA,
+ // Please make sure to update dbg_channel_names when adding entries here.
+
+ // Do not remove this line, as it indicates the end of the list
DCI_LAST
} DBG_CHANNEL_ID;
#ifdef FEATURE_PAL_SXS
, "SXS"
#endif // FEATURE_PAL_SXS
+ , "DCI_NUMA"
};
+// Verify the number of elements in dbg_channel_names
+static_assert_no_msg(_countof(dbg_channel_names) == DCI_LAST);
+
static const char *dbg_level_names[]=
{
"ENTRY",