diff options
Diffstat (limited to 'source/module/monitor_mem.c')
| -rw-r--r-- | source/module/monitor_mem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/module/monitor_mem.c b/source/module/monitor_mem.c index 17375a0..e2dc096 100644 --- a/source/module/monitor_mem.c +++ b/source/module/monitor_mem.c @@ -161,7 +161,7 @@ static int func_indices[2][9] = {{0, 0, 1, 0, 2, 0, 0, 0, 3}, /// @brief read k_arg->kptr and compare with threshold /// @param k_arg /// @return result of compare -unsigned char read_and_compare(void *ptr, int len, unsigned char greater_flag, +unsigned char read_and_compare(void *ptr, int len, unsigned char above_threshold, unsigned char is_unsigned, long long threshold) { unsigned char result = 0; @@ -177,7 +177,7 @@ unsigned char read_and_compare(void *ptr, int len, unsigned char greater_flag, // %d \n", k_arg->name, *(int *)ptr, // threshold, result); - if (greater_flag) + if (above_threshold) return result; else return !result; |
