Adapt to new OCF PP param set/get API.

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
Michal Mielewczyk
2019-09-30 02:59:41 -04:00
parent 35d1793d44
commit 296db39ea0
5 changed files with 26 additions and 26 deletions

View File

@@ -854,7 +854,7 @@ int set_param_promotion_nhit_handle_option(char *opt, const char **arg)
strtoul(arg[0], NULL, 10));
} else if (!strcmp(opt, "trigger")) {
if (validate_str_num(arg[0], "trigger",
OCF_NHIT_MIN_TRIGGER, OCF_NHIT_MAX_THRESHOLD)) {
OCF_NHIT_MIN_TRIGGER, OCF_NHIT_MAX_TRIGGER)) {
return FAILURE;
}