summaryrefslogtreecommitdiff
path: root/tests/i915_query.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2018-08-30 09:38:55 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2018-08-30 19:29:19 +0100
commit3f89d7b02dcf662e994c7135b13d52bc8e09a4ea (patch)
tree9827ed62b6edfd0ae4f6063b692bb49c54e43d67 /tests/i915_query.c
parente39e09910fc8e369e24f6a0cabaeb9356dbfae08 (diff)
lib/sysfs: Avoid using FILE* temporary for igt_sysfs_[v]printf
Currently we wrap our fd inside a FILE* stream to make use of vfprintf, but the man page leaves the question of errno and signal handling in doubt. It is documented as returning a negative value and setting ferror(), but we have been interpreting errno to handle signal restarting. As that is in doubt, reduce it to a sprintf and reuse our common interrupt handling write() that already returns -errno. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Katarzyna Dec <katarzyna.dec@intel.com> Reviewed-by: Katarzyna Dec <katarzyna.dec@intel.com>
Diffstat (limited to 'tests/i915_query.c')
0 files changed, 0 insertions, 0 deletions