diff options
author | Markos Fountoulakis <44345837+mfundul@users.noreply.github.com> | 2020-06-16 21:57:46 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-16 21:57:46 +0300 |
commit | ed2d5542cc6000d80a7d4377435cc175cfd519e4 (patch) | |
tree | 4f823c068cc87f10b00c64d02e3b56de1255b84c /collectors | |
parent | 36d5e40dca91a93963e4d96f07af3e38803615d0 (diff) |
Replace assert calls (#9349)
* Replace all assert() calls with the new fatal_assert() for proper logging.
Diffstat (limited to 'collectors')
-rw-r--r-- | collectors/freeipmi.plugin/freeipmi_plugin.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/collectors/freeipmi.plugin/freeipmi_plugin.c b/collectors/freeipmi.plugin/freeipmi_plugin.c index 74274ea215..bd3c533cad 100644 --- a/collectors/freeipmi.plugin/freeipmi_plugin.c +++ b/collectors/freeipmi.plugin/freeipmi_plugin.c @@ -160,7 +160,7 @@ char *sel_config_file = NULL; static void _init_ipmi_config (struct ipmi_monitoring_ipmi_config *ipmi_config) { - assert (ipmi_config); + fatal_assert(ipmi_config); ipmi_config->driver_type = driver_type; ipmi_config->disable_auto_probe = disable_auto_probe; @@ -1580,7 +1580,7 @@ int ipmi_detect_speed_secs(struct ipmi_monitoring_ipmi_config *ipmi_config) { int parse_inband_driver_type (const char *str) { - assert (str); + fatal_assert(str); if (strcasecmp (str, IPMI_PARSE_DEVICE_KCS_STR) == 0) return (IPMI_MONITORING_DRIVER_TYPE_KCS); @@ -1604,7 +1604,7 @@ int parse_inband_driver_type (const char *str) int parse_outofband_driver_type (const char *str) { - assert (str); + fatal_assert(str); if (strcasecmp (str, IPMI_PARSE_DEVICE_LAN_STR) == 0) return (IPMI_MONITORING_PROTOCOL_VERSION_1_5); |