summaryrefslogtreecommitdiffstats
path: root/tmk_core/common/mbed
diff options
context:
space:
mode:
authorIBNobody <IBNobody@users.noreply.github.com>2016-09-08 06:50:58 +0200
committerGitHub <noreply@github.com>2016-09-08 06:50:58 +0200
commitfe2aed0d1c8d1535c160755b76186972071aed02 (patch)
treeda8f2cb3cad4a7dc7e5e95b3594c98740b0da398 /tmk_core/common/mbed
parent558f3ec1eb325caf706efc15e2fab26121aba442 (diff)
downloadqmk_firmware-fe2aed0d1c8d1535c160755b76186972071aed02.tar.gz
qmk_firmware-fe2aed0d1c8d1535c160755b76186972071aed02.tar.xz
Added User Print - A "light" console out option (#8)
User print disables the normal print messages in the body of QMK/TMK code and is meant as a lightweight alternative to NOPRINT. Use it when you only want to do a spot of debugging but lack flash resources for allowing all of the codebase to print (and store their wasteful strings).
Diffstat (limited to 'tmk_core/common/mbed')
-rw-r--r--tmk_core/common/mbed/xprintf.cpp2
-rw-r--r--tmk_core/common/mbed/xprintf.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/tmk_core/common/mbed/xprintf.cpp b/tmk_core/common/mbed/xprintf.cpp
index 3647ece75..b1aac2c99 100644
--- a/tmk_core/common/mbed/xprintf.cpp
+++ b/tmk_core/common/mbed/xprintf.cpp
@@ -7,7 +7,7 @@
#define STRING_STACK_LIMIT 120
//TODO
-int xprintf(const char* format, ...) { return 0; }
+int __xprintf(const char* format, ...) { return 0; }
#if 0
/* mbed Serial */
diff --git a/tmk_core/common/mbed/xprintf.h b/tmk_core/common/mbed/xprintf.h
index 26bc529e5..1e7a48c06 100644
--- a/tmk_core/common/mbed/xprintf.h
+++ b/tmk_core/common/mbed/xprintf.h
@@ -7,7 +7,7 @@
extern "C" {
#endif
-int xprintf(const char *format, ...);
+int __xprintf(const char *format, ...);
#ifdef __cplusplus
}