[all-commits] [llvm/llvm-project] 99be59: [compiler-rt] Fix -Wformat in timing.h (NFC)

Jie Fu via All-commits all-commits at lists.llvm.org
Mon Apr 3 16:49:46 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 99be590cb9b492825dd2cc453efc23d852594d16
      https://github.com/llvm/llvm-project/commit/99be590cb9b492825dd2cc453efc23d852594d16
  Author: Jie Fu <jiefu at tencent.com>
  Date:   2023-04-04 (Tue, 04 Apr 2023)

  Changed paths:
    M compiler-rt/lib/scudo/standalone/timing.h

  Log Message:
  -----------
  [compiler-rt] Fix -Wformat in timing.h (NFC)

/home/jiefu/llvm-project/compiler-rt/lib/scudo/standalone/timing.h:181:41: error: format specifies type 'unsigned long long' but the argument has type 'u64' (aka 'unsigned long') [-Werror,-Wformat]
    Str.append("%14llu.%llu(ns) %-11s", Integral, Fraction, " ");
                ~~~~~~                  ^~~~~~~~
                %14lu
/home/jiefu/llvm-project/compiler-rt/lib/scudo/standalone/timing.h:181:51: error: format specifies type 'unsigned long long' but the argument has type 'u64' (aka 'unsigned long') [-Werror,-Wformat]
    Str.append("%14llu.%llu(ns) %-11s", Integral, Fraction, " ");
                       ~~~~                       ^~~~~~~~
                       %lu
/home/jiefu/llvm-project/compiler-rt/lib/scudo/standalone/timing.h:185:54: error: format specifies type 'unsigned long long' but the argument has type 'u64' (aka 'unsigned long') [-Werror,-Wformat]
    Str.append("%s (%llu)\n", Timers[HandleId].Name, Occurrence);
                    ~~~~                             ^~~~~~~~~~
                    %lu
3 errors generated.




More information about the All-commits mailing list