diff options
author | bde <bde@FreeBSD.org> | 1998-08-02 14:57:00 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1998-08-02 14:57:00 +0000 |
commit | 559a9a5f7d40627eaecd0fc3cd60b6d49c3853b9 (patch) | |
tree | 5c7532ffe938c31ce7fb57f752fd5ba10773074d /contrib/gcc/objc | |
parent | aaeb261fcc7eacef2d74ca1937e92075a2de6ff2 (diff) | |
download | FreeBSD-src-559a9a5f7d40627eaecd0fc3cd60b6d49c3853b9.zip FreeBSD-src-559a9a5f7d40627eaecd0fc3cd60b6d49c3853b9.tar.gz |
Fixed printf format errors. gcc should have a macro HOST_PTR_PRINTF_TYPE
to go with its HOST_PTR_PRINTF[_FORMAT], since if %p is wrong for the
format then `void *' is probably wrong for the type.
Diffstat (limited to 'contrib/gcc/objc')
-rw-r--r-- | contrib/gcc/objc/sendmsg.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/contrib/gcc/objc/sendmsg.c b/contrib/gcc/objc/sendmsg.c index 79d4a6b..6d1d4ad 100644 --- a/contrib/gcc/objc/sendmsg.c +++ b/contrib/gcc/objc/sendmsg.c @@ -542,12 +542,15 @@ void __objc_print_dtable_stats() #endif ); - printf("arrays: %d = %ld bytes\n", narrays, (int)narrays*sizeof(struct sarray)); + printf("arrays: %d = %lu bytes\n", + narrays, (unsigned long)narrays*sizeof(struct sarray)); total += narrays*sizeof(struct sarray); - printf("buckets: %d = %ld bytes\n", nbuckets, (int)nbuckets*sizeof(struct sbucket)); + printf("buckets: %d = %lu bytes\n", + nbuckets, (unsigned long)nbuckets*sizeof(struct sbucket)); total += nbuckets*sizeof(struct sbucket); - printf("idxtables: %d = %ld bytes\n", idxsize, (int)idxsize*sizeof(void*)); + printf("idxtables: %d = %lu bytes\n", + idxsize, (unsigned long)idxsize*sizeof(void*)); total += idxsize*sizeof(void*); printf("-----------------------------------\n"); printf("total: %d bytes\n", total); |