Let's use the really correct specifier :)
[platform/upstream/libsolv.git] / tools / attr_store.c
index db43a6d..9cfaa25 100644 (file)
@@ -697,10 +697,10 @@ attr_store_pack (Attrstore *s)
   s->stringhashmask = 0;
 
   fprintf (stderr, "%d\n", old_mem);
-  fprintf (stderr, "%ld\n", (unsigned long) s->entries * sizeof(s->ent2attr[0]));
+  fprintf (stderr, "%zd\n", s->entries * sizeof(s->ent2attr[0]));
   fprintf (stderr, "%d\n", s->attr_next_free);
-  fprintf (stderr, "%ld\n", (unsigned long) s->abbr_next_free * sizeof(s->abbr[0]));
-  fprintf (stderr, "%ld\n", (unsigned long) s->flat_abbr_next_free * sizeof(s->flat_abbr[0]));
+  fprintf (stderr, "%zd\n", s->abbr_next_free * sizeof(s->abbr[0]));
+  fprintf (stderr, "%zd\n", s->flat_abbr_next_free * sizeof(s->flat_abbr[0]));
   fprintf (stderr, "pages %d\n", s->num_pages);
   s->packed = 1;
 }