17 changed files with 72 additions and 32 deletions
-
4chip/basic/logger.hpp
-
10chip/zuart.cpp
-
10components/cmdscheduler/cmd_scheduler.cpp
-
2components/cmdscheduler/cmd_scheduler.hpp
-
4components/dwin/text_displayer.cpp
-
5components/flash/znvs.cpp
-
5components/flash/znvs.hpp
-
10components/iflytop_can_slave_module_master_end/stepmotor.cpp
-
14components/iflytop_can_slave_module_master_end/stepmotor.hpp
-
2components/mini_servo_motor/feite_servo_motor.cpp
-
1components/motor_laser_code_scanner/motor_laser_code_scanne.cpp
-
1components/sensors/smtp2/smtp2.cpp
-
3components/step_motor_ctrl_module/step_motor_ctrl_module.cpp
-
2components/xy_robot_ctrl_module/xy_robot_ctrl_module.cpp
-
2components/zprotocols/zcancmder
-
16os/zoslogger.cpp
-
13os/zoslogger.hpp
@ -1 +1 @@ |
|||
Subproject commit fca927c9a222ea031e6516df2bdef9b7f1f300b7 |
|||
Subproject commit 272fe1ac5a48f2093f87c7429bf444a15b0de097 |
@ -1,6 +1,20 @@ |
|||
#include "zoslogger.hpp"
|
|||
|
|||
#include <stdarg.h>
|
|||
#include <stdio.h>
|
|||
#include <stdlib.h>
|
|||
#include <string.h>
|
|||
|
|||
iflytop::zmutex glog_mutex; |
|||
extern "C" { |
|||
|
|||
void zos_loggger_init() { glog_mutex.init(); } |
|||
void zos_loggger_init() { glog_mutex.init(); } |
|||
void zos_log(const char* fmt, ...) { |
|||
if (g_enable_log) { |
|||
va_list args; |
|||
va_start(args, fmt); |
|||
vprintf(fmt, args); |
|||
va_end(args); |
|||
} |
|||
} |
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue