Changes in uspace/drv/vhc/debug.c [947d788:63b4f90] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/vhc/debug.c
r947d788 r63b4f90 35 35 #include <stdio.h> 36 36 #include <ipc/ipc.h> 37 #include <usb/debug.h>38 37 39 38 #include "vhcd.h" 40 39 40 /** Current debug level. */ 41 int debug_level = 0; 42 43 /** Debugging printf. 44 * This function is intended for single-line messages as it 45 * automatically prints debugging prefix at the beginning of the 46 * line. 47 * 48 * @see printf 49 * @param level Debugging level. 50 */ 51 void dprintf(int level, const char *format, ...) 52 { 53 if (level > debug_level) { 54 return; 55 } 56 57 printf("%s(%d): ", NAME, level); 58 va_list args; 59 va_start(args, format); 60 vprintf(format, args); 61 va_end(args); 62 printf("\n"); 63 } 41 64 42 65 /** Debug print informing of invalid call.
Note:
See TracChangeset
for help on using the changeset viewer.