你的位置:首页 > 软件开发 > 操作系统 > 6.2远程打印

6.2远程打印

发布时间:2016-04-09 17:00:16
因为串口打印速度慢,调试程序会影响程序的真正效果,所以引入网络打印 debug_manager.h #ifndef _DEBUG_MANAGER_H#define _DEBUG_MANAGER_H#define APP_EMERG "<0>&qu ...

因为串口打印速度慢,调试程序会影响程序的真正效果,所以引入网络打印

 

debug_manager.h

#ifndef _DEBUG_MANAGER_H#define _DEBUG_MANAGER_H#define  APP_EMERG  "<0>"  /* system is unusable      */#define  APP_ALERT  "<1>"  /* action must be taken immediately  */#define  APP_CRIT  "<2>"  /* critical conditions      */#define  APP_ERR      "<3>"  /* error conditions      */#define  APP_WARNING  "<4>"  /* warning conditions      */#define  APP_NOTICE  "<5>"  /* normal but significant condition  */#define  APP_INFO  "<6>"  /* informational      */#define  APP_DEBUG  "<7>"  /* debug-level messages      */#define DEFAULT_DBGLEVEL 4typedef struct DebugOpr {  char *name;  int isCanUse;  int (*DebugInit)(void);  int (*DebugExit)(void);  int (*DebugPrint)(char *strData);    struct DebugOpr *ptNext;}T_DebugOpr, *PT_DebugOpr;int RegisterDebugOpr(PT_DebugOpr ptDebugOpr);void ShowDebugOpr(void);PT_DebugOpr GetDebugOpr(char *pcName);int SetDbgLevel(char *strBuf);int SetDbgChanel(char *strBuf);int DebugInit(void);int DebugPrint(const char *pcFormat, ...);int InitDebugChanel(void);int NetPrintInit(void);int StdoutInit(void);#endif /* _DEBUG_MANAGER_H */

原标题:6.2远程打印

关键词:

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

可能感兴趣文章

我的浏览记录