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
[email protected]

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to