📄 debug.c
字号:
#include "libusb_filter.h"#include <stdarg.h>#include <stdio.h>#include <stddef.h>#define DEBUG_BUFFER_SIZE 1024static int debug_level = DEBUG_MSG;void debug_print_nl(void){ if(debug_level) KdPrint((" "));}void debug_set_level(int level){ debug_level = level;}void debug_printf(int level, char *format, ...) { char tmp[DEBUG_BUFFER_SIZE]; va_list args; if(level <= debug_level) { va_start(args, format); vsprintf(tmp, format, args); va_end(args); KdPrint(("LIBUSB_FILTER - %s\n", tmp)); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -