diff options
author | Simon Wilson <ksattic@gmail.com> | 2011-05-30 21:18:26 -0700 |
---|---|---|
committer | Simon Wilson <ksattic@gmail.com> | 2011-05-30 21:44:00 -0700 |
commit | 851aa5cc1596af6236c6105a92fb3b575ecb5c1c (patch) | |
tree | d2414a65d88b2c617bcbddcd78bfa6770302b792 | |
parent | a1bb1e0a27aeb853697106bc311c5ca77ab782c1 (diff) |
pcm: fix minor code errors
-rw-r--r-- | pcm.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -138,7 +138,7 @@ struct pcm { struct pcm_config config; }; -unsigned int pcm_buffer_size(struct pcm *pcm) +unsigned int pcm_get_buffer_size(struct pcm *pcm) { return pcm->buffer_size; } @@ -289,12 +289,12 @@ struct pcm *pcm_open(unsigned int device, unsigned int flags, struct pcm_config pcm->flags = flags; pcm->fd = open(dname, O_RDWR); if (pcm->fd < 0) { - oops(pcm, errno, "cannot open device '%s'"); + oops(pcm, errno, "cannot open device '%s'", dname); return pcm; } if (ioctl(pcm->fd, SNDRV_PCM_IOCTL_INFO, &info)) { - oops(pcm, errno, "cannot get info - %s"); + oops(pcm, errno, "cannot get info"); goto fail; } |