From e6eecbfbbe430abeffd4ed928b3bc2a5ff6e9380 Mon Sep 17 00:00:00 2001 From: Bjoern Brandenburg Date: Thu, 25 Sep 2008 00:22:08 -0400 Subject: don't assume 64 bits --- src/ftdump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/ftdump.c b/src/ftdump.c index 2871537..4a7b3bf 100644 --- a/src/ftdump.c +++ b/src/ftdump.c @@ -34,13 +34,13 @@ int main(int argc, char** argv) struct timestamp* ts; printf("struct timestamp:\n" - "\t size = %3lu\n" + "\t size = %3u\n" "\t offset(timestamp) = %3u\n" "\t offset(seq_no) = %3u\n" "\t offset(cpu) = %3u\n" "\t offset(event) = %3u\n" "\t offset(task_type) = %3u\n", - sizeof(struct timestamp), + (unsigned int) sizeof(struct timestamp), offset(struct timestamp, timestamp), offset(struct timestamp, seq_no), offset(struct timestamp, cpu), -- cgit v1.2.2