Skip to content

Commit

Permalink
Fix oops parameter in tinyalsa.c
Browse files Browse the repository at this point in the history
Argument e of oops(struct pcm *pcm, int e, const char *fmt, ...)
must be >= 0
  • Loading branch information
junmin-kim committed Jan 4, 2018
1 parent 5c7f3f9 commit 14a6f21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/src/tinyalsa/tinyalsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ static int pcm_mmap_transfer_areas(struct pcm *pcm, char *buf, unsigned int offs
pcm_areas_copy(pcm, pcm_offset, buf, offset, frames);
commit = pcm_mmap_commit(pcm, pcm_offset, frames);
if (commit < 0) {
return oops(pcm, commit, "failed to commit %d frames\n", frames);
return oops(pcm, -commit, "failed to commit %d frames\n", frames);
}

offset += commit;
Expand Down

0 comments on commit 14a6f21

Please sign in to comment.