Skip to content

Commit 86dc17d

Browse files
AlexChenmdroth
AlexChen
authored andcommitted
qga: Switch and case should be at the same indent
Reported-by: Euler Robot <[email protected]> Signed-off-by: AlexChen <[email protected]> Reviewed-by: Marc-André Lureau <[email protected]> Signed-off-by: Michael Roth <[email protected]>
1 parent aaaed19 commit 86dc17d

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

qga/main.c

+26-26
Original file line numberDiff line numberDiff line change
@@ -279,20 +279,20 @@ QEMU_HELP_BOTTOM "\n"
279279
static const char *ga_log_level_str(GLogLevelFlags level)
280280
{
281281
switch (level & G_LOG_LEVEL_MASK) {
282-
case G_LOG_LEVEL_ERROR:
283-
return "error";
284-
case G_LOG_LEVEL_CRITICAL:
285-
return "critical";
286-
case G_LOG_LEVEL_WARNING:
287-
return "warning";
288-
case G_LOG_LEVEL_MESSAGE:
289-
return "message";
290-
case G_LOG_LEVEL_INFO:
291-
return "info";
292-
case G_LOG_LEVEL_DEBUG:
293-
return "debug";
294-
default:
295-
return "user";
282+
case G_LOG_LEVEL_ERROR:
283+
return "error";
284+
case G_LOG_LEVEL_CRITICAL:
285+
return "critical";
286+
case G_LOG_LEVEL_WARNING:
287+
return "warning";
288+
case G_LOG_LEVEL_MESSAGE:
289+
return "message";
290+
case G_LOG_LEVEL_INFO:
291+
return "info";
292+
case G_LOG_LEVEL_DEBUG:
293+
return "debug";
294+
default:
295+
return "user";
296296
}
297297
}
298298

@@ -687,19 +687,19 @@ DWORD WINAPI service_ctrl_handler(DWORD ctrl, DWORD type, LPVOID data,
687687
GAService *service = &ga_state->service;
688688

689689
switch (ctrl) {
690-
case SERVICE_CONTROL_STOP:
691-
case SERVICE_CONTROL_SHUTDOWN:
692-
quit_handler(SIGTERM);
693-
SetEvent(ga_state->wakeup_event);
694-
service->status.dwCurrentState = SERVICE_STOP_PENDING;
695-
SetServiceStatus(service->status_handle, &service->status);
696-
break;
697-
case SERVICE_CONTROL_DEVICEEVENT:
698-
handle_serial_device_events(type, data);
699-
break;
690+
case SERVICE_CONTROL_STOP:
691+
case SERVICE_CONTROL_SHUTDOWN:
692+
quit_handler(SIGTERM);
693+
SetEvent(ga_state->wakeup_event);
694+
service->status.dwCurrentState = SERVICE_STOP_PENDING;
695+
SetServiceStatus(service->status_handle, &service->status);
696+
break;
697+
case SERVICE_CONTROL_DEVICEEVENT:
698+
handle_serial_device_events(type, data);
699+
break;
700700

701-
default:
702-
ret = ERROR_CALL_NOT_IMPLEMENTED;
701+
default:
702+
ret = ERROR_CALL_NOT_IMPLEMENTED;
703703
}
704704
return ret;
705705
}

0 commit comments

Comments
 (0)