summaryrefslogtreecommitdiff
path: root/gcc/ggc-page.c
diff options
context:
space:
mode:
authoraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-24 06:30:41 +0000
committeraj <aj@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-24 06:30:41 +0000
commit29e7390a7b12ff933e4586851b54b83ad4ef6091 (patch)
treeafdc2d299bec9a01ad11cc133fd8958e21dff60e /gcc/ggc-page.c
parenteec065b5f1da93b5099c5a07878ffa3fa31c5b45 (diff)
downloadgcc-29e7390a7b12ff933e4586851b54b83ad4ef6091.tar.gz
* ggc-page.c (alloc_page): Cast variables of type size_t to
unsigned long, adjust printf format string. (ggc_alloc): Likewise. (ggc_print_statistics): Likewise. (ggc_print_statistics): Correct printf format string for SCALE to use unsigned long. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53820 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ggc-page.c')
-rw-r--r--gcc/ggc-page.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/gcc/ggc-page.c b/gcc/ggc-page.c
index db4266b9709..dd124d3cc8f 100644
--- a/gcc/ggc-page.c
+++ b/gcc/ggc-page.c
@@ -732,8 +732,8 @@ alloc_page (order)
if (GGC_DEBUG_LEVEL >= 2)
fprintf (G.debug_file,
- "Allocating page at %p, object size=%ld, data %p-%p\n",
- (PTR) entry, (long) OBJECT_SIZE (order), page,
+ "Allocating page at %p, object size=%lu, data %p-%p\n",
+ (PTR) entry, (unsigned long) OBJECT_SIZE (order), page,
page + entry_size - 1);
return entry;
@@ -954,8 +954,9 @@ ggc_alloc (size)
if (GGC_DEBUG_LEVEL >= 3)
fprintf (G.debug_file,
- "Allocating object, requested size=%ld, actual=%ld at %p on %p\n",
- (long) size, (long) OBJECT_SIZE (order), result, (PTR) entry);
+ "Allocating object, requested size=%lu, actual=%lu at %p on %p\n",
+ (unsigned long) size, (unsigned long) OBJECT_SIZE (order), result,
+ (PTR) entry);
return result;
}
@@ -1500,13 +1501,14 @@ ggc_print_statistics ()
overhead += (sizeof (page_entry) - sizeof (long)
+ BITMAP_SIZE (OBJECTS_PER_PAGE (i) + 1));
}
- fprintf (stderr, "%-5d %10ld%c %10ld%c %10ld%c\n", OBJECT_SIZE (i),
+ fprintf (stderr, "%-5lu %10lu%c %10lu%c %10lu%c\n",
+ (unsigned long) OBJECT_SIZE (i),
SCALE (allocated), LABEL (allocated),
SCALE (in_use), LABEL (in_use),
SCALE (overhead), LABEL (overhead));
total_overhead += overhead;
}
- fprintf (stderr, "%-5s %10ld%c %10ld%c %10ld%c\n", "Total",
+ fprintf (stderr, "%-5s %10lu%c %10lu%c %10lu%c\n", "Total",
SCALE (G.bytes_mapped), LABEL (G.bytes_mapped),
SCALE (G.allocated), LABEL(G.allocated),
SCALE (total_overhead), LABEL (total_overhead));