commit | c1de5dc0541e58372dcddc5120e1e68e03f4f619 | [log] [tgz] |
---|---|---|
author | Chuck Tuffli <chuck@tuffli.net> | Fri Feb 07 02:09:35 2014 |
committer | Adam Jackson <ajax@redhat.com> | Tue Oct 20 18:38:34 2015 |
tree | 575f1ef728c72d1c90288c821344a6d0507aaf24 | |
parent | 8ea3af620a2d4ad5648917b4a0ef2b23ff566774 [diff] |
libpciaccess: Fix incorrect format specification Building libpciaccess generates a warning on versions of Linux in which the definition of the struct mtrr_sentry has changed to __u64. Since sentry.base is assigned from a pciaddr_t, always cast sentry.base to be type pciaddr_t and modify the formatting string to use PRIx64 instead of %08lx Verified on Ubuntu 10.04 and 14.04 Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=74643 Signed-off-by: Chuck Tuffli <chuck@tuffli.net>