From 2dd8ca17b01e29efc0a5a54d404ee4aa84dfa308 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Thu, 6 Jan 2011 01:49:00 +0000 Subject: [PATCH] Partly revert r28208 by using ir_printf with %zu format for size_t. [r28214] --- ir/adt/bitset.h | 5 +++-- ir/be/becopyheur4.c | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ir/adt/bitset.h b/ir/adt/bitset.h index 0dec42363..79cb6b4eb 100644 --- a/ir/adt/bitset.h +++ b/ir/adt/bitset.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2011 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -31,6 +31,7 @@ #include #include #include +#include "irprintf.h" #include "xmalloc.h" #include "bitfiddle.h" @@ -349,7 +350,7 @@ static inline void bitset_fprint(FILE *file, const bitset_t *bs) putc('{', file); for(i = bitset_next_set(bs, 0); i != (size_t)-1; i = bitset_next_set(bs, i + 1)) { - fprintf(file, "%s%lu", prefix, (unsigned long) i); + ir_fprintf(file, "%s%zu", prefix, i); prefix = ","; } putc('}', file); diff --git a/ir/be/becopyheur4.c b/ir/be/becopyheur4.c index f68d4c5ba..f41a49c32 100644 --- a/ir/be/becopyheur4.c +++ b/ir/be/becopyheur4.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2010 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2011 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -181,7 +181,7 @@ static void dbg_admissible_colors(const co_mst_env_t *env, const co_mst_irn_t *n fprintf(stderr, "no admissible colors?!?"); else { bitset_foreach(node->adm_colors, idx) { - fprintf(stderr, " %lu", (unsigned long) idx); + ir_fprintf(stderr, " %zu", idx); } } } -- 2.20.1