Move log message output(fprintf, puthcar) to target code
Related issue #752 JerryScript-DCO-1.0-Signed-off-by: SaeHie Park saehie.park@samsung.com
This commit is contained in:
@@ -99,7 +99,7 @@ extern void __noreturn jerry_unimplemented (const char *, const char *, const ch
|
||||
{ \
|
||||
if (lvl <= jerry_debug_level && jerry_log_file) \
|
||||
{ \
|
||||
fprintf (jerry_log_file, __VA_ARGS__); \
|
||||
jerry_port_logmsg (jerry_log_file, __VA_ARGS__); \
|
||||
} \
|
||||
} \
|
||||
while (0)
|
||||
@@ -120,7 +120,7 @@ extern void __noreturn jerry_unimplemented (const char *, const char *, const ch
|
||||
#define JERRY_DDDLOG(...) JERRY_DLOG (__VA_ARGS__)
|
||||
#endif /* !JERRY_ENABLE_LOG */
|
||||
|
||||
#define JERRY_ERROR_MSG(...) fprintf (stderr, __VA_ARGS__)
|
||||
#define JERRY_ERROR_MSG(...) jerry_port_errormsg (__VA_ARGS__)
|
||||
#define JERRY_WARNING_MSG(...) JERRY_ERROR_MSG (__VA_ARGS__)
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user