From 54697dd302997bd456775c62d1a7509eb7cb332d Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Mon, 21 Jan 2002 18:00:42 +0000 Subject: [PATCH] Print the strerror instead of just the errno. --- dlls/winmm/wineoss/audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/winmm/wineoss/audio.c b/dlls/winmm/wineoss/audio.c index 7daa61473b1..a04f542f255 100644 --- a/dlls/winmm/wineoss/audio.c +++ b/dlls/winmm/wineoss/audio.c @@ -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); -- 2.11.4.GIT