Skip to content

Commit 3db8d33

Browse files
committed
Update mpprint.h
1 parent bc420b5 commit 3db8d33

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

py/mpprint.h

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ int mp_vprintf(const mp_print_t *print, const char *fmt, va_list args);
100100
#define MP_PRN(level, ...) \
101101
do { \
102102
if ((0 < level) && (level <= MP_PRN_LEVEL)) { \
103-
mp_printf(MP_PYTHON_PRINTER, " %d || ", level); \
103+
mp_printf(MP_PYTHON_PRINTER, " MP_PRN_LEVEL=%d : ", level); \
104104
mp_printf(MP_PYTHON_PRINTER, __VA_ARGS__); \
105-
mp_printf(MP_PYTHON_PRINTER, " || %d %s\n", __LINE__, __FILE__); \
105+
mp_printf(MP_PYTHON_PRINTER, " : LINE=%d FILE=%s\n", __LINE__, __FILE__); \
106106
} \
107107
} while (0);
108108
#else
@@ -129,13 +129,3 @@ void foo() {
129129
// Then add MP_PRN(3, ...) and when gets too much messages then change some messages to the next level MP_PRN(4, ...), or MP_PRN(2, ...) etc.
130130
// Then you may change MP_PRN_LEVEL to 2(reduce printing), and finally to 0(supress printing).
131131
*/
132-
133-
#if 0
134-
#if MICROPY_DEBUG_VERBOSE // print debugging info
135-
#define DEBUG_PRINT (1)
136-
#define DEBUG_printf(...) MP_PRN(MP_PRN_DEBUG, __VA_ARGS__)
137-
#else // don't print debugging info
138-
#define DEBUG_PRINT (0)
139-
#define DEBUG_printf(...)
140-
#endif
141-
#endif

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy