mirror of https://github.com/ericonr/sndio.git
check debug_level
This commit is contained in:
parent
1d71c4a2fa
commit
c62616c78f
|
@ -121,6 +121,7 @@ dev_new(char *path, unsigned mode,
|
|||
pnum = (mode & MODE_THRU) ? &dev_midnum : &dev_sndnum;
|
||||
if (*pnum == DEV_NMAX) {
|
||||
#ifdef DEBUG
|
||||
if (debug_level >= 1)
|
||||
dbg_puts("too many devices\n");
|
||||
#endif
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in New Issue