made ETHER_DEBUG use dprintf() as the previous logic was screwing badly and making the boot sequence hang in some setups (specifically qemu, may have fixed issues with Parallels as well).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20721 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -39,20 +39,9 @@ int32 api_version = B_CUR_DRIVER_API_VERSION;
|
|||||||
/* diagnostic debug flags - compile in here or set while running with debugger "AcmeRoadRunner" command */
|
/* diagnostic debug flags - compile in here or set while running with debugger "AcmeRoadRunner" command */
|
||||||
#define DEFAULT_DEBUG_FLAGS ( ERR | INFO | WARN | FUNCTION )
|
#define DEFAULT_DEBUG_FLAGS ( ERR | INFO | WARN | FUNCTION )
|
||||||
|
|
||||||
//void ETHER_DEBUG(int32 debug_mask, int32 enabled, char * format, ...);
|
#define ETHER_DEBUG(mask, enabled, format, args...) \
|
||||||
|
do { if (mask & enabled) \
|
||||||
static void
|
dprintf(format , ##args); } while (0)
|
||||||
ETHER_DEBUG(int32 debug_mask, int32 enabled, char * format, ...)
|
|
||||||
{
|
|
||||||
if (debug_mask & enabled) {
|
|
||||||
va_list args;
|
|
||||||
char s[4096];
|
|
||||||
va_start(args, format);
|
|
||||||
vsprintf( s, format, args );
|
|
||||||
va_end(args);
|
|
||||||
dprintf("%s",s);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static pci_module_info *gPCIModInfo;
|
static pci_module_info *gPCIModInfo;
|
||||||
|
|||||||
Reference in New Issue
Block a user