mirror of
https://github.com/ericonr/sndio.git
synced 2024-02-18 04:45:21 -06:00
log slot details only if its allocated
This commit is contained in:
parent
a525ed859b
commit
792b22dc90
@ -101,11 +101,13 @@ slot_log(struct slot *s)
|
||||
if (log_level >= 3) {
|
||||
log_puts(",vol=");
|
||||
log_putu(s->vol);
|
||||
if (s->ops) {
|
||||
log_puts(",pst=");
|
||||
log_puts(pstates[s->pstate]);
|
||||
log_puts(",mmc=");
|
||||
log_puts(tstates[s->tstate]);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user