|
24 | 24 | * |
25 | 25 | * #include "mbed.h" |
26 | 26 | * int main() { |
27 | | - * MBED_CRIT("OS", "This is critical error. Action Required: %s", "Restart"); |
28 | | - * MBED_ERR("OS", "Error performing XYZ operation, errno = %d", -10); |
29 | | - * MBED_WARN("Lib", "This is warning message"); |
30 | | - * MBED_DBG_IF("main", 1, "%d %s ", 1, "hello"); |
31 | | - * MBED_INFO("main", "%s %s 0x%lx", "world", "!", 2); |
32 | | - * MBED_TRACE("lib", "Trace level of debugging for libraries"); |
| 27 | + * MBED_ERR("OS", "Error performing XYZ operation, errno = %d\n", -10); |
| 28 | + * MBED_WARN("Lib", "This is warning message\n"); |
| 29 | + * MBED_DBG_IF("main", 1, "%d %s\n", 1, "hello"); |
| 30 | + * MBED_INFO("main", "%s %s 0x%lx\n", "world", "!", 2); |
| 31 | + * MBED_TRACE("lib", "Trace level of debugging for libraries\n"); |
| 32 | + * MBED_CRIT("OS", "This is critical error. Action Required: %s\n", "Restart"); |
33 | 33 | * } |
34 | 34 | * |
35 | 35 | * @endcode |
|
41 | 41 | * |
42 | 42 | * void periodicCallback(void) |
43 | 43 | * { |
44 | | - * MBED_WARN("ISR", "Print in interrupt context"); |
| 44 | + * MBED_WARN("ISR", "Print in interrupt context\n"); |
45 | 45 | * } |
46 | 46 | * |
47 | 47 | * int main() { |
|
50 | 50 | * int count = 1; |
51 | 51 | * while(count++) { |
52 | 52 | * wait(0.2); |
53 | | - * MBED_DBG_IF("main", (0 == count%10), "Count = %d", count); |
| 53 | + * MBED_DBG_IF("main", (0 == count%10), "Count = %d\n", count); |
54 | 54 | * } |
55 | 55 | * } |
56 | 56 | * |
|
0 commit comments