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