summaryrefslogtreecommitdiff
path: root/lib/igt_draw.h
diff options
context:
space:
mode:
authorPaulo Zanoni <paulo.r.zanoni@intel.com>2015-08-13 13:49:42 -0300
committerPaulo Zanoni <paulo.r.zanoni@intel.com>2015-08-14 15:26:28 -0300
commita1fce7490c72c45c79cff89a39dee0b59a8f4c71 (patch)
treeecce15515ffb4a76295adb12f90daaeb04a0ee4b /lib/igt_draw.h
parent87a5f2d7762b5b8398c5f5899d796bb78dc827b7 (diff)
lib/igt_core: use print("%s", #expr) instead of print(#expr)
If I have a program with the following: igt_skip_on(i % 2 == 0); igt_skip_on_f(i % 2 == 0, "i:%d\n", i); igt_require(i % 2 == 0); igt_require_f(i % 2 == 0, "i:%d\n", i); then I'll get compiler error messages complaining about format conversions related to the '%' character used in the mod operation. So put the whole string as a %s argument to avoid interpreting '%' and any other possible chars. Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Diffstat (limited to 'lib/igt_draw.h')
0 files changed, 0 insertions, 0 deletions