All of lore.kernel.org
 help / color / mirror / Atom feed
From: Eric Anholt <eric@anholt.net>
To: "Ville Syrjälä" <ville.syrjala@linux.intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH i-g-t 1/4] kms_content_protection: Fix log bug on 32-bit platforms.
Date: Thu, 15 Nov 2018 10:51:51 -0800	[thread overview]
Message-ID: <87o9aqyy0o.fsf@anholt.net> (raw)
In-Reply-To: <20181115111749.GW9144@intel.com>


[-- Attachment #1.1: Type: text/plain, Size: 1341 bytes --]

Ville Syrjälä <ville.syrjala@linux.intel.com> writes:

> On Wed, Nov 14, 2018 at 02:28:29PM -0800, Eric Anholt wrote:
>> long is different between 32 and 64 and should basically never be
>> used.  Fixes compiler warning about passing the wrong type.
>> 
>> Signed-off-by: Eric Anholt <eric@anholt.net>
>> ---
>>  tests/kms_content_protection.c | 3 ++-
>>  1 file changed, 2 insertions(+), 1 deletion(-)
>> 
>> diff --git a/tests/kms_content_protection.c b/tests/kms_content_protection.c
>> index 801eff66c272..bb9ecd3f4cde 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 %lld != %lld\n",
>> +		 (long long)val, (long long)expected);
>
> We use the ugly PRId64 & co. elsewhere for this.

My experience with those ugly macros is that people have a flinch when
trying to remember how they work and just ignore the issue instead,
leaving it for those that have to compile for 32.  I'll switch it,
though.

Hopefully i-g-t will get cross-compiling CI and merge requests at some
point so that these bugs can just never land in the first place.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2018-11-15 18:51 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-14 22:28 [PATCH i-g-t 1/4] kms_content_protection: Fix log bug on 32-bit platforms Eric Anholt
2018-11-14 22:28 ` [PATCH i-g-t 2/4] v3d: Import the V3D DRM UAPI header Eric Anholt
2018-11-21 10:15   ` Petri Latvala
2018-11-14 22:28 ` [PATCH i-g-t 3/4] Add v3d helper library Eric Anholt
2018-11-21 10:17   ` Petri Latvala
2018-11-14 22:28 ` [PATCH i-g-t 4/4] igt/v3d_*: Add new tests for the V3D UABI Eric Anholt
2018-11-21 10:13   ` Petri Latvala
2018-11-26 20:46     ` Eric Anholt
2018-11-27 10:16       ` Petri Latvala
2018-11-27 20:46         ` Eric Anholt
2018-11-14 22:50 ` ✓ Fi.CI.BAT: success for series starting with [1/4] kms_content_protection: Fix log bug on 32-bit platforms Patchwork
2018-11-15  6:24 ` ✗ Fi.CI.IGT: failure " Patchwork
2018-11-15 11:17 ` [PATCH i-g-t 1/4] " Ville Syrjälä
2018-11-15 18:51   ` Eric Anholt [this message]
2018-11-15 20:40     ` Ville Syrjälä

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o9aqyy0o.fsf@anholt.net \
    --to=eric@anholt.net \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=ville.syrjala@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.