check debug_level

This commit is contained in:
Alexandre Ratchov 2011-11-01 18:01:33 +01:00
parent 1d71c4a2fa
commit c62616c78f
1 changed files with 2 additions and 1 deletions

View File

@ -121,7 +121,8 @@ dev_new(char *path, unsigned mode,
pnum = (mode & MODE_THRU) ? &dev_midnum : &dev_sndnum;
if (*pnum == DEV_NMAX) {
#ifdef DEBUG
dbg_puts("too many devices\n");
if (debug_level >= 1)
dbg_puts("too many devices\n");
#endif
return NULL;
}