Permalink
Browse files

Fix to use integer-only printf

  • Loading branch information...
1 parent 3db7967 commit 9273d4df5bfb0f5e4ef355093e021895c4f81fa1 @kpansky committed Mar 19, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 ports/microblaze/atomport-tests.h
@@ -41,9 +41,7 @@
/* Xilinx documentation states that printf is not thread-safe, so wrap
* it around a critical section for safety.
*/
-//#define ATOMLOG printf
-//#define ATOMLOG(format, ...) {CRITICAL_STORE; CRITICAL_START(); printf(format, ##__VA_ARGS__); CRITICAL_END();}
-#define ATOMLOG(format, ...) {CRITICAL_STORE; CRITICAL_START(); print(format); CRITICAL_END();}
+#define ATOMLOG(format, ...) {CRITICAL_STORE; CRITICAL_START(); iprintf(format, ##__VA_ARGS__); CRITICAL_END();}
/*
* String location macro: for platforms which need to place strings in

0 comments on commit 9273d4d

Please sign in to comment.