Skip to content

Commit e0e8bd4

Browse files
author
Deepika
committed
Print the warning messages in debug mode
1 parent c356f1f commit e0e8bd4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

platform/mbed_error.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717
#include <stdarg.h>
1818
#include <string.h>
1919
#include "device.h"
20-
#include "platform/mbed_critical.h"
20+
#include "platform/mbed_debug.h"
2121
#include "platform/mbed_error.h"
22+
#include "platform/mbed_critical.h"
2223
#include "platform/mbed_error_hist.h"
2324
#include "platform/mbed_interface.h"
2425
#ifdef MBED_CONF_RTOS_PRESENT
@@ -193,6 +194,7 @@ int mbed_get_error_count(void)
193194
//Sets a fatal error
194195
mbed_error_status_t mbed_warning(mbed_error_status_t error_status, const char *error_msg, unsigned int error_value, const char *filename, int line_number)
195196
{
197+
debug("%s", error_msg);
196198
return handle_error(error_status, error_value, filename, line_number, MBED_CALLER_ADDR());
197199
}
198200

0 commit comments

Comments
 (0)