Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
7151cdc8
Commit
7151cdc8
authored
Nov 30, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 30, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winealsa.drv: Use wine_dbg_sprintf() in a few debug utility functions.
parent
4adefb68
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
12 deletions
+4
-12
alsa.c
dlls/winealsa.drv/alsa.c
+3
-9
mixer.c
dlls/winealsa.drv/mixer.c
+1
-3
No files found.
dlls/winealsa.drv/alsa.c
View file @
7151cdc8
...
...
@@ -220,7 +220,6 @@ int ALSA_RetrieveRingMessage(ALSA_MSG_RING* omr, enum win_wm_message *msg,
/* These strings used only for tracing */
const
char
*
ALSA_getCmdString
(
enum
win_wm_message
msg
)
{
static
char
unknown
[
32
];
#define MSG_TO_STR(x) case x: return #x
switch
(
msg
)
{
MSG_TO_STR
(
WINE_WM_PAUSING
);
...
...
@@ -234,13 +233,11 @@ const char * ALSA_getCmdString(enum win_wm_message msg)
MSG_TO_STR
(
WINE_WM_STOPPING
);
}
#undef MSG_TO_STR
sprintf
(
unknown
,
"UNKNOWN(0x%08x)"
,
msg
);
return
unknown
;
return
wine_dbg_sprintf
(
"UNKNOWN(0x%08x)"
,
msg
);
}
const
char
*
ALSA_getMessage
(
UINT
msg
)
{
static
char
unknown
[
32
];
#define MSG_TO_STR(x) case x: return #x
switch
(
msg
)
{
MSG_TO_STR
(
DRVM_INIT
);
...
...
@@ -282,13 +279,11 @@ const char * ALSA_getMessage(UINT msg)
MSG_TO_STR
(
DRV_QUERYDSOUNDDESC
);
}
#undef MSG_TO_STR
sprintf
(
unknown
,
"UNKNOWN(0x%04x)"
,
msg
);
return
unknown
;
return
wine_dbg_sprintf
(
"UNKNOWN(0x%04x)"
,
msg
);
}
const
char
*
ALSA_getFormat
(
WORD
wFormatTag
)
{
static
char
unknown
[
32
];
#define FMT_TO_STR(x) case x: return #x
switch
(
wFormatTag
)
{
FMT_TO_STR
(
WAVE_FORMAT_PCM
);
...
...
@@ -298,8 +293,7 @@ const char * ALSA_getFormat(WORD wFormatTag)
FMT_TO_STR
(
WAVE_FORMAT_ADPCM
);
}
#undef FMT_TO_STR
sprintf
(
unknown
,
"UNKNOWN(0x%04x)"
,
wFormatTag
);
return
unknown
;
return
wine_dbg_sprintf
(
"UNKNOWN(0x%04x)"
,
wFormatTag
);
}
/* Allow 1% deviation for sample rates (some ES137x cards) */
...
...
dlls/winealsa.drv/mixer.c
View file @
7151cdc8
...
...
@@ -77,7 +77,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(mixer);
static
const
char
*
getMessage
(
UINT
uMsg
)
{
static
char
str
[
64
];
#define MSG_TO_STR(x) case x: return #x;
switch
(
uMsg
){
MSG_TO_STR
(
DRVM_INIT
);
...
...
@@ -95,8 +94,7 @@ static const char * getMessage(UINT uMsg)
default:
break
;
}
#undef MSG_TO_STR
sprintf
(
str
,
"UNKNOWN(%08x)"
,
uMsg
);
return
str
;
return
wine_dbg_sprintf
(
"UNKNOWN(%08x)"
,
uMsg
);
}
static
const
char
*
getControlType
(
DWORD
dwControlType
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment