Re: [LTP] [PATCH v4 3/3] mm/thp: add new case thp05

chrubis
2013-04-15T12:48:05Z

Hi!
> + snprintf(path, BUFSIZ, PATH_KHPD "scan_sleep_millisecs");
> + SAFE_FILE_SCANF(NULL, path, "%d", &pre_thp_scan_sleep_millisecs);
> + SAFE_FILE_PRINTF(cleanup, path, "%d", 0);
> +
> + snprintf(path, BUFSIZ, PATH_KHPD "alloc_sleep_millisecs");
> + SAFE_FILE_SCANF(NULL, path, "%d", &pre_thp_alloc_sleep_millisecs);
> + SAFE_FILE_PRINTF(NULL, path, "%d", 0);
> +
> + snprintf(path, BUFSIZ, PATH_THP "enabled");
> + write_file(path, "always");

Same as the previous one. Remove the useless snprintf() and pass the
strings directly.

--
Cyril Hrubis
chrubis@suse.cz