Minor fix in user bitmask functions (XCC)
authorBarret Rhoden <brho@cs.berkeley.edu>
Wed, 11 May 2011 22:42:54 +0000 (15:42 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Nov 2011 00:36:02 +0000 (17:36 -0700)
You'll need to reinstall these headers into your cross compiler paths,
either manually or by recompiling your cross compiler.  It's not a big
deal, unless you try to PRINT_BITMASK, so feel free to hold off.

user/parlib/include/i686/bitmask.h
user/parlib/include/sparc/bitmask.h

index 6ce3e38..7b19859 100644 (file)
@@ -101,10 +101,10 @@ static inline bool BITMASK_IS_FULL(uint8_t* map, size_t size)
        for (i = 0; i < BYTES_FOR_BITMASK(size); i++) { \
                int j;  \
                for (j = 0; j < MIN(8,_size); j++) \
-                       printk("%x", ((name)[i] >> j) & 1);     \
+                       printf("%x", ((name)[i] >> j) & 1);     \
                        _size--; \
        } \
-       printk("\n"); \
+       printf("\n"); \
 }
 
 #endif /* PARLIB_ARCH_BITMASK_H */
index 05e82e5..fb1e9fa 100644 (file)
@@ -67,9 +67,9 @@ static inline bool BITMASK_IS_FULL(uint8_t* map, size_t size)
 #define PRINT_BITMASK(name, size) { \
        int i;  \
        for (i = 0; i < BYTES_FOR_BITMASK(size); i++) { \
-               printk("%x", (name)[i] );       \
+               printf("%x", (name)[i] );       \
        } \
-       printk("\n"); \
+       printf("\n"); \
 }
 
 #endif /* PARLIB_ARCH_BITMASK_H */