Skip to content
  • Ville Syrjälä's avatar
    Fix a bunch of printf types · 1ecd91a8
    Ville Syrjälä authored
    igt_kms.c: In function ‘igt_crtc_set_background’:
    igt_kms.c:1940:2: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘uint64_t’ [-Wformat=]
      LOG(display, "%s.%d: crtc_set_background(%lu)\n",
      ^
    intel_firmware_decode.c: In function ‘csr_open’:
    intel_firmware_decode.c:169:2: warning: format ‘%zd’ expects argument of type ‘signed size_t’, but argument 3 has type ‘__off_t’ [-Wformat=]
      printf("Firmware: %s (%zd bytes)\n", filename, st.st_size);
      ^
    intel_gpu_top.c: In function ‘main’:
    intel_gpu_top.c:683:10: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 3 has type ‘uint64_t’ [-Wformat=]
              stats[i] - last_stats[i]);
              ^
    hsw_compute_wrpll.c: In function ‘main’:
    hsw_compute_wrpll.c:644:3: warning: format ‘%li’ expects argument of type ‘long int’, but argument 7 has type ‘long long int’ [-Wformat=]
       igt_fail_on_f(ref->r2 != r...
    1ecd91a8