debug.c
来自「NDIS 实现pppoe例子」· C语言 代码 · 共 36 行
C
36 行
/*
MikroTik PPPoE - MikroTik PPP over Ethernet client for Windows
Copyright (C), 2001 MikroTikls
The contents of this program are subject to the Mozilla Public License
Version 1.1; you may not use this program except in compliance with the
License. You may obtain a copy of the License at http://www.mozilla.org/MPL/
http://www.mikrotik.com
mt@mt.lv
*/
#include <ntddk.h>
#include "debug.h"
#ifdef PPPOE_FUNCTION_DEBUG
static int debug_depth = 0;
void debug_fenter(const char *d) {
int i;
for (i = 0; i < debug_depth; i++) DbgPrint(" ");
DbgPrint("-> %s\n", d);
++debug_depth;
}
void debug_fleave(const char *d) {
int i;
--debug_depth;
for (i = 0; i < debug_depth; i++) DbgPrint(" ");
DbgPrint("<- %s\n", d);
}
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?