[all-commits] [llvm/llvm-project] 40470e: [libomptarget][NFC] Replace `%ld` with PRId64 for ...

George Rokos via All-commits all-commits at lists.llvm.org
Wed Aug 5 13:31:54 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 40470eb27a5c97b01e89d8825626487b0682abec
      https://github.com/llvm/llvm-project/commit/40470eb27a5c97b01e89d8825626487b0682abec
  Author: George Rokos <georgios.rokos at intel.com>
  Date:   2020-08-05 (Wed, 05 Aug 2020)

  Changed paths:
    M openmp/libomptarget/plugins/cuda/src/rtl.cpp
    M openmp/libomptarget/src/device.cpp
    M openmp/libomptarget/src/omptarget.cpp
    M openmp/libomptarget/src/rtl.cpp

  Log Message:
  -----------
  [libomptarget][NFC] Replace `%ld` with PRId64 for data of type int64_t.

The standard way of printing `int64_t` data is via the PRId64 macro, `ld`
is for `long int` and int64_t is not guaranteed to be typedef'ed as `long int`
on all platforms. E.g. on Windows we get mismatch warnings.

Differential Revision: https://reviews.llvm.org/D85353




More information about the All-commits mailing list