diff options
author | Eric Anholt <eric@anholt.net> | 2018-11-08 10:17:39 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2018-11-16 17:34:58 -0800 |
commit | 38b0749a09755cf94a3d9281ad163e21f37d1e47 (patch) | |
tree | 54b9a9126429153a81984b6b7f16e6bba44db45f /tests/kms_content_protection.c | |
parent | 8ac5cfb4db9c7bc593beec18a6be1e2ff163106c (diff) |
kms_content_protection: Fix log bug on 32-bit platforms.
long is different between 32 and 64 and should basically never be
used. Fixes compiler warning about passing the wrong type.
v2: Use the PRId64 macros instead of long long.
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'tests/kms_content_protection.c')
-rw-r--r-- | tests/kms_content_protection.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/kms_content_protection.c b/tests/kms_content_protection.c index 801eff66..ef90ed4c 100644 --- a/tests/kms_content_protection.c +++ b/tests/kms_content_protection.c @@ -89,7 +89,8 @@ wait_for_prop_value(igt_output_t *output, uint64_t expected, return true; usleep(1000); } - igt_info("prop_value mismatch %ld != %ld\n", val, expected); + igt_info("prop_value mismatch %" PRId64 " != %" PRId64 "\n", + val, expected); return false; } |