Commit 7e5b56f2f3b749004d04ae22309501b07c19a0f2

Francois Perrad 2019-10-15T21:01:47

fix printf format

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/etc/pprime.c b/etc/pprime.c
index 944b5a6..50be809 100644
--- a/etc/pprime.c
+++ b/etc/pprime.c
@@ -403,7 +403,7 @@ int main(void)
    pprime(k, li, &p, &q);
    t1 = clock() - t1;
 
-   printf("\n\nTook %d ticks, %d bits\n", t1, mp_count_bits(&p));
+   printf("\n\nTook %lu ticks, %d bits\n", t1, mp_count_bits(&p));
 
    mp_to_decimal(&p, buf, sizeof(buf));
    printf("P == %s\n", buf);