]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Monitor.c
Mdmonitor: Pass events to alert() using enums instead of strings
authorMateusz Grzonka <mateusz.grzonka@intel.com>
Thu, 2 Feb 2023 11:27:00 +0000 (12:27 +0100)
committerJes Sorensen <jes@trained-monkey.org>
Thu, 2 Mar 2023 15:51:02 +0000 (10:51 -0500)
commit50232a6ec4a5c46c608181d72d0c633831a03134
treed741c5363b425fdf48263c08e987d98d72f4cb22
parentb301516615c441bd3cc4b512fae73fc066d227f1
Mdmonitor: Pass events to alert() using enums instead of strings

Add events enum, and mapping_t struct, that maps them to strings, so
that enums are passed around instead of strings.

Signed-off-by: Mateusz Grzonka <mateusz.grzonka@intel.com>
Acked-by: Coly Li <colyli@suse.de>
Signed-off-by: Jes Sorensen <jes@trained-monkey.org>
Monitor.c