Partly revert r28208 by using ir_printf with %zu format for size_t.
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 6 Jan 2011 01:49:00 +0000 (01:49 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 6 Jan 2011 01:49:00 +0000 (01:49 +0000)
[r28214]

ir/adt/bitset.h
ir/be/becopyheur4.c

index 0dec423..79cb6b4 100644 (file)
@@ -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 <stdio.h>
 #include <assert.h>
 #include <string.h>
+#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);
index f68d4c5..f41a49c 100644 (file)
@@ -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);
                }
        }
 }