mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
dri/common: Fix codestyle of driParseDebugString().
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
This commit is contained in:
parent
08e9049e3d
commit
3d4f75506c
1 changed files with 6 additions and 8 deletions
|
|
@ -43,19 +43,17 @@
|
|||
|
||||
|
||||
uint64_t
|
||||
driParseDebugString( const char * debug,
|
||||
const struct dri_debug_control * control )
|
||||
driParseDebugString(const char *debug,
|
||||
const struct dri_debug_control *control)
|
||||
{
|
||||
uint64_t flag = 0;
|
||||
|
||||
if ( debug != NULL ) {
|
||||
while( control->string != NULL ) {
|
||||
if ( !strcmp( debug, "all" ) ||
|
||||
strstr( debug, control->string ) != NULL ) {
|
||||
if (debug != NULL) {
|
||||
for (; control->string != NULL; control++) {
|
||||
if (!strcmp(debug, "all") ||
|
||||
strstr(debug, control->string) != NULL) {
|
||||
flag |= control->flag;
|
||||
}
|
||||
|
||||
control++;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue