Skip to content

Commit 136923c

Browse files
author
deepikabhavnani
committed
Updated the example as newline char is needed now
1 parent 84ef718 commit 136923c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

platform/mbed_logger.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@
2424
*
2525
* #include "mbed.h"
2626
* 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");
3333
* }
3434
*
3535
* @endcode
@@ -41,7 +41,7 @@
4141
*
4242
* void periodicCallback(void)
4343
* {
44-
* MBED_WARN("ISR", "Print in interrupt context");
44+
* MBED_WARN("ISR", "Print in interrupt context\n");
4545
* }
4646
*
4747
* int main() {
@@ -50,7 +50,7 @@
5050
* int count = 1;
5151
* while(count++) {
5252
* 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);
5454
* }
5555
* }
5656
*

0 commit comments

Comments
 (0)