Merge in SNORT/snort3 from ~MMATIRKO/snort3:proc_error_msg to master
Squashed commit of the following:
commit
21b3ff6037338932101226b997dd65220ace78cf
Author: Michael Matirko <mmatirko@cisco.com>
Date: Tue Sep 30 10:33:59 2025 -0400
main: add message when unable to set affinity
if (hwloc_bitmap_list_sscanf(cpuset, cpuset_str) ||
!hwloc_bitmap_isincluded(cpuset, process_cpuset))
{
+ char* allowed_s = nullptr;
+ hwloc_bitmap_list_asprintf(&allowed_s, process_cpuset);
+ ParseError("Invalid CPU set '%s'. Allowed process CPU set: %s\n",
+ cpuset_str ? cpuset_str : "(null)", allowed_s ? allowed_s : "(null)");
+
+ if (allowed_s)
+ free(allowed_s);
+
hwloc_bitmap_free(cpuset);
return nullptr;
}