[PATCH i-g-t v4 0/9] Print/scan formatting fixups

Jan Sokolowski jan.sokolowski at intel.com
Tue May 27 12:04:12 UTC 2025


It was found that when compiling for other architectures,
due to difference in how these architectures recognize
how integers should be printed, warnings were thrown
in print/scan functions.

Fix them up using universal formatters like
for example PRIu64.

Signed-off-by: Jan Sokolowski <jan.sokolowski at intel.com>
Cc: Katarzyna Piecielska <katarzyna.piecielska at intel.com>
Cc: Kamil Konieczny <kamil.konieczny at linux.intel.com>

---

v2: various fixes for missing formatters, commit messages, and warnings
for additional configurations. Added cc's. Split patches into more
smaller patches. 
v3: Added rb's from v2. Fixed what had been found in v2 review.
Rebased to current HEAD, which added more things to correct in xe_pmu.c 
v4: Minor fixes.

---

Jan Sokolowski (9):
  lib/amdgpu: fixup print formatting for files in lib
  tests/amdgpu: fixup print formatting for files in tests
  lib/igt_nouveau: fixup print formatting for files in lib
  lib/igt_perf: fixup scan formatting for files in lib
  lib/xe/xe_sriov*: fixup print/scan formatting for files in lib
  tests/intel/xe_sriov*: fixup print formatting for files in tests
  runner: fixup print/scan formatting for files in runner
  tests/intel: fixup print formatting for files in intel tests
  tests/intel/xe_eudebug: fixup print formatting for xe_eudebug tests

 lib/amdgpu/amd_deadlock_helpers.c        | 19 ++++++++++---------
 lib/igt_nouveau.c                        |  2 +-
 lib/igt_perf.c                           |  3 ++-
 lib/xe/xe_sriov_debugfs.c                | 18 +++++++++---------
 lib/xe/xe_sriov_provisioning.c           |  2 +-
 runner/executor.c                        |  2 +-
 runner/settings.c                        |  2 +-
 tests/amdgpu/amd_freesync_video_mode.c   |  4 ++--
 tests/amdgpu/amd_info.c                  |  2 +-
 tests/amdgpu/amd_ras.c                   |  2 +-
 tests/intel/xe_compute_preempt.c         |  5 +++--
 tests/intel/xe_eu_stall.c                |  4 ++--
 tests/intel/xe_eudebug.c                 |  4 ++--
 tests/intel/xe_exec_capture.c            |  9 +++++----
 tests/intel/xe_exec_system_allocator.c   |  8 ++++----
 tests/intel/xe_oa.c                      |  6 +++---
 tests/intel/xe_pmu.c                     | 16 ++++++++--------
 tests/intel/xe_render_copy.c             |  2 +-
 tests/intel/xe_sriov_auto_provisioning.c |  6 +++---
 tests/intel/xe_sriov_flr.c               | 12 ++++++------
 tests/intel/xe_sriov_scheduling.c        |  4 ++--
 21 files changed, 68 insertions(+), 64 deletions(-)

-- 
2.34.1



More information about the igt-dev mailing list