Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
3be32504
Commit
3be32504
authored
Nov 30, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 30, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineoss.drv: Use wine_dbg_sprintf() in a few debug utility functions.
parent
7151cdc8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
21 deletions
+7
-21
audio.c
dlls/wineoss.drv/audio.c
+2
-6
mixer.c
dlls/wineoss.drv/mixer.c
+5
-15
No files found.
dlls/wineoss.drv/audio.c
View file @
3be32504
...
...
@@ -107,7 +107,6 @@ unsigned numInDev;
/* These strings used only for tracing */
static
const
char
*
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
);
...
...
@@ -121,8 +120,7 @@ static const char * 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
);
}
int
getEnables
(
OSS_DEVICE
*
ossdev
)
...
...
@@ -133,7 +131,6 @@ int getEnables(OSS_DEVICE *ossdev)
static
const
char
*
getMessage
(
UINT
msg
)
{
static
char
unknown
[
32
];
#define MSG_TO_STR(x) case x: return #x
switch
(
msg
)
{
MSG_TO_STR
(
DRVM_INIT
);
...
...
@@ -175,8 +172,7 @@ static const char * 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
);
}
static
DWORD
wodDevInterfaceSize
(
UINT
wDevID
,
LPDWORD
dwParam1
)
...
...
dlls/wineoss.drv/mixer.c
View file @
3be32504
...
...
@@ -113,7 +113,6 @@ static struct mixer MIX_Mixers[MAX_MIXERDRV];
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
);
...
...
@@ -130,13 +129,11 @@ static const char * getMessage(UINT uMsg)
MSG_TO_STR
(
MXDM_SETCONTROLDETAILS
);
}
#undef MSG_TO_STR
sprintf
(
str
,
"UNKNOWN(%08x)"
,
uMsg
);
return
str
;
return
wine_dbg_sprintf
(
"UNKNOWN(%08x)"
,
uMsg
);
}
static
const
char
*
getIoctlCommand
(
int
command
)
{
static
char
str
[
64
];
#define IOCTL_TO_STR(x) case x: return #x;
switch
(
command
)
{
IOCTL_TO_STR
(
SOUND_MIXER_VOLUME
);
...
...
@@ -172,13 +169,11 @@ static const char * getIoctlCommand(int command)
#endif
}
#undef IOCTL_TO_STR
sprintf
(
str
,
"UNKNOWN(%08x)"
,
command
);
return
str
;
return
wine_dbg_sprintf
(
"UNKNOWN(%08x)"
,
command
);
}
static
const
char
*
getControlType
(
DWORD
dwControlType
)
{
static
char
str
[
64
];
#define TYPE_TO_STR(x) case x: return #x
switch
(
dwControlType
)
{
TYPE_TO_STR
(
MIXERCONTROL_CONTROLTYPE_CUSTOM
);
...
...
@@ -214,13 +209,11 @@ static const char * getControlType(DWORD dwControlType)
TYPE_TO_STR
(
MIXERCONTROL_CONTROLTYPE_MILLITIME
);
}
#undef TYPE_TO_STR
sprintf
(
str
,
"UNKNOWN(%08x)"
,
dwControlType
);
return
str
;
return
wine_dbg_sprintf
(
"UNKNOWN(%08x)"
,
dwControlType
);
}
static
const
char
*
getComponentType
(
DWORD
dwComponentType
)
{
static
char
str
[
64
];
#define TYPE_TO_STR(x) case x: return #x;
switch
(
dwComponentType
)
{
TYPE_TO_STR
(
MIXERLINE_COMPONENTTYPE_DST_UNDEFINED
);
...
...
@@ -245,13 +238,11 @@ static const char * getComponentType(DWORD dwComponentType)
TYPE_TO_STR
(
MIXERLINE_COMPONENTTYPE_SRC_ANALOG
);
}
#undef TYPE_TO_STR
sprintf
(
str
,
"UNKNOWN(%08x)"
,
dwComponentType
);
return
str
;
return
wine_dbg_sprintf
(
"UNKNOWN(%08x)"
,
dwComponentType
);
}
static
const
char
*
getTargetType
(
DWORD
dwType
)
{
static
char
str
[
64
];
#define TYPE_TO_STR(x) case x: return #x;
switch
(
dwType
)
{
TYPE_TO_STR
(
MIXERLINE_TARGETTYPE_UNDEFINED
);
...
...
@@ -262,8 +253,7 @@ static const char * getTargetType(DWORD dwType)
TYPE_TO_STR
(
MIXERLINE_TARGETTYPE_AUX
);
}
#undef TYPE_TO_STR
sprintf
(
str
,
"UNKNOWN(%08x)"
,
dwType
);
return
str
;
return
wine_dbg_sprintf
(
"UNKNOWN(%08x)"
,
dwType
);
}
static
const
WCHAR
sz_short_volume
[]
=
{
'V'
,
'o'
,
'l'
,
0
};
...
...
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