Skip to content
Snippets Groups Projects
Commit 54697dd3 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard
Browse files

Print the strerror instead of just the errno.

parent 0881f204
No related branches found
No related tags found
No related merge requests found
......@@ -1546,7 +1546,7 @@ static HRESULT DSDB_MapPrimary(IDsDriverBufferImpl *dsdb)
wwo->mapping = mmap(NULL, wwo->maplen, PROT_WRITE, MAP_SHARED,
wwo->unixdev, 0);
if (wwo->mapping == (LPBYTE)-1) {
ERR("(%p): Could not map sound device for direct access (errno=%d)\n", dsdb, errno);
ERR("(%p): Could not map sound device for direct access (%s)\n", dsdb, strerror(errno));
return DSERR_GENERIC;
}
TRACE("(%p): sound device has been mapped for direct access at %p, size=%ld\n", dsdb, wwo->mapping, wwo->maplen);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment