pivot-table: Fix format specifiers.
authorBen Pfaff <blp@cs.stanford.edu>
Wed, 2 Jan 2019 22:33:56 +0000 (14:33 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Wed, 2 Jan 2019 22:50:14 +0000 (14:50 -0800)
Found by GCC.

Fixes: 5cab4cf3322f ("output: Introduce pivot tables.")
src/output/pivot-table.c

index c024f142ee8917637e98ef53013b8222902d1e6e..674fe2cdf5c6b80babb44bd7619fb866eb1420ff 100644 (file)
@@ -1268,7 +1268,7 @@ void
 pivot_dimension_dump (const struct pivot_dimension *d, int indentation)
 {
   indent (indentation);
-  printf ("%s dimension %zu (where 0=innermost), label_depth=%zu:\n",
+  printf ("%s dimension %zu (where 0=innermost), label_depth=%d:\n",
           pivot_axis_type_to_string (d->axis_type), d->level, d->label_depth);
 
   pivot_category_dump (d->root, indentation + 1);
@@ -1520,7 +1520,7 @@ pivot_table_dump (const struct pivot_table *table, int indentation)
       if (f->marker)
         pivot_value_dump (f->marker);
       else
-        printf ("%d", f->idx);
+        printf ("%zu", f->idx);
       putchar (']');
       pivot_value_dump (f->content);
       putchar ('\n');