Let's use the really correct specifier :)
authorMichael Matz <matz@suse.de>
Fri, 9 Nov 2007 12:26:58 +0000 (12:26 +0000)
committerMichael Matz <matz@suse.de>
Fri, 9 Nov 2007 12:26:58 +0000 (12:26 +0000)
tools/attr_store.c

index db43a6d9020838dea235c7a162fe3d98822de61b..9cfaa254bd51880061002685ef8e32b35922f357 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;
 }