Revision 933df08e os/core/inc/aos_debug.h

View differences:

os/core/inc/aos_debug.h
54 54
  chDbgAssert(c, r);                                      \
55 55
}
56 56

  
57
/**
58
 * @brief   Printf function for messages only printed in debug builds.
59
 *
60
 * @param[in] fmt   Formatted string to print.
61
 */
62
#define aosDbgPrintf(fmt, ...)           chprintf((BaseSequentialStream*)&aos.iostream, fmt, ##__VA_ARGS__)
63

  
57 64
#else
58 65

  
59 66
#define aosDbgCheck(c) {                                  \
......
69 76
  (void)(r);                                              \
70 77
}
71 78

  
79
#define aosDbgPrintf(fmt, ...) {                          \
80
  (void)(fmt);                                            \
81
}
82

  
72 83
#endif
73 84

  
74 85
#ifdef __cplusplus

Also available in: Unified diff