[compiler-rt] Fix -Wformat in timing.h (NFC)
authorJie Fu <jiefu@tencent.com>
Mon, 3 Apr 2023 23:48:33 +0000 (07:48 +0800)
committerJie Fu <jiefu@tencent.com>
Mon, 3 Apr 2023 23:49:27 +0000 (07:49 +0800)
commit99be590cb9b492825dd2cc453efc23d852594d16
tree396e8cf4d29d6770635cd2a0c603165e4a0bc7b6
parentbe15db8cf2ebb00238ea1b2c1bd9b01dc2938552
[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.
compiler-rt/lib/scudo/standalone/timing.h