]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
Trying to get a ppc64le build going
authorEric Curtin <ericcurtin17@gmail.com>
Wed, 3 Feb 2021 21:09:54 +0000 (21:09 +0000)
committerKeith Busch <kbusch@kernel.org>
Mon, 8 Feb 2021 16:08:22 +0000 (09:08 -0700)
Fix warnings along with that

.github/workflows/c-cpp.yml
nvme-print.c

index 23aa0bfc5df6e99acc1c655a77fd728ecce16b3e..d2f94e95bbad9d057e1427fe7cafaefbc6aba29b 100644 (file)
@@ -14,4 +14,5 @@ jobs:
     steps:
     - uses: actions/checkout@v2
     - name: make
-      run: make
+      run: sudo apt-get install gcc-10-powerpc* && make clean && make && make clean && make LD=powerpc64le-linux-gnu-ld CC=powerpc64le-linux-gnu-gcc-10 CFLAGS='-O2 -g -Wall -Wformat-security -Werror -m64 -mcpu=power8 -mtune=power8 -I -I/usr/powerpc64-linux-gnu/include/'
+
index 9db02ef07e1685f25b0a6f1aeba574bcc65f8247..c862b1478f6321d94fb7117a771b45f4cc0408dc 100644 (file)
@@ -990,8 +990,8 @@ void nvme_show_predictable_latency_event_agg_log(
        printf("Predictable Latency Event Aggregate Log for"\
                " device: %s\n", devname);
 
-       printf("Number of Entries Available: %llu\n",
-               num_entries);
+       printf("Number of Entries Available: %"PRIu64"\n",
+               (uint64_t)num_entries);
 
        num_iter = min(num_entries, log_entries);
        for (int i = 0; i < num_iter; i++) {