Add path sanitizing
to `print_slow_atomic_cache_start_info` after removing check from lower function `_check_cache_device`. Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
This commit is contained in:
parent
be87b59303
commit
fb8fb63f06
@ -540,8 +540,12 @@ const char *get_core_state_name(int core_state)
|
||||
/* check if device is atomic and print information about potential slow start */
|
||||
void print_slow_atomic_cache_start_info(const char *device_path)
|
||||
{
|
||||
char buff[MAX_STR_LEN];
|
||||
struct kcas_cache_check_device cmd_info;
|
||||
int ret = _check_cache_device(device_path, &cmd_info);
|
||||
int ret;
|
||||
|
||||
get_dev_path(device_path, buff, sizeof(buff));
|
||||
ret = _check_cache_device(device_path, &cmd_info);
|
||||
|
||||
if (!ret && cmd_info.format_atomic) {
|
||||
cas_printf(LOG_INFO,
|
||||
|
Loading…
Reference in New Issue
Block a user