[igt-dev] [CI 2/8] tests/perf: Simplify generic read/write, use sysfs helpers
Chris Wilson
chris at chris-wilson.co.uk
Mon Mar 18 10:49:15 UTC 2019
Quoting MichaĆ Winiarski (2019-03-14 12:50:44)
> static void
> -write_u64_file(const char *file, uint64_t val)
> +write_u64_file(const char *path, uint64_t val)
> {
> - char buf[32];
> - int fd, len, ret;
> + FILE *f;
>
> - fd = open(file, O_WRONLY);
> - igt_assert(fd >= 0);
> + f = fopen(path, "r");
"w"!
-Chris
More information about the igt-dev
mailing list