mirror of https://github.com/proxmox/mirror_qemu
qga: Switch and case should be at the same indent
Reported-by: Euler Robot <euler.robot@huawei.com> Signed-off-by: AlexChen <alex.chen@huawei.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Michael Roth <michael.roth@amd.com>master
parent
aaaed19972
commit
86dc17d4d0
52
qga/main.c
52
qga/main.c
|
@ -279,20 +279,20 @@ QEMU_HELP_BOTTOM "\n"
|
||||||
static const char *ga_log_level_str(GLogLevelFlags level)
|
static const char *ga_log_level_str(GLogLevelFlags level)
|
||||||
{
|
{
|
||||||
switch (level & G_LOG_LEVEL_MASK) {
|
switch (level & G_LOG_LEVEL_MASK) {
|
||||||
case G_LOG_LEVEL_ERROR:
|
case G_LOG_LEVEL_ERROR:
|
||||||
return "error";
|
return "error";
|
||||||
case G_LOG_LEVEL_CRITICAL:
|
case G_LOG_LEVEL_CRITICAL:
|
||||||
return "critical";
|
return "critical";
|
||||||
case G_LOG_LEVEL_WARNING:
|
case G_LOG_LEVEL_WARNING:
|
||||||
return "warning";
|
return "warning";
|
||||||
case G_LOG_LEVEL_MESSAGE:
|
case G_LOG_LEVEL_MESSAGE:
|
||||||
return "message";
|
return "message";
|
||||||
case G_LOG_LEVEL_INFO:
|
case G_LOG_LEVEL_INFO:
|
||||||
return "info";
|
return "info";
|
||||||
case G_LOG_LEVEL_DEBUG:
|
case G_LOG_LEVEL_DEBUG:
|
||||||
return "debug";
|
return "debug";
|
||||||
default:
|
default:
|
||||||
return "user";
|
return "user";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -687,19 +687,19 @@ DWORD WINAPI service_ctrl_handler(DWORD ctrl, DWORD type, LPVOID data,
|
||||||
GAService *service = &ga_state->service;
|
GAService *service = &ga_state->service;
|
||||||
|
|
||||||
switch (ctrl) {
|
switch (ctrl) {
|
||||||
case SERVICE_CONTROL_STOP:
|
case SERVICE_CONTROL_STOP:
|
||||||
case SERVICE_CONTROL_SHUTDOWN:
|
case SERVICE_CONTROL_SHUTDOWN:
|
||||||
quit_handler(SIGTERM);
|
quit_handler(SIGTERM);
|
||||||
SetEvent(ga_state->wakeup_event);
|
SetEvent(ga_state->wakeup_event);
|
||||||
service->status.dwCurrentState = SERVICE_STOP_PENDING;
|
service->status.dwCurrentState = SERVICE_STOP_PENDING;
|
||||||
SetServiceStatus(service->status_handle, &service->status);
|
SetServiceStatus(service->status_handle, &service->status);
|
||||||
break;
|
break;
|
||||||
case SERVICE_CONTROL_DEVICEEVENT:
|
case SERVICE_CONTROL_DEVICEEVENT:
|
||||||
handle_serial_device_events(type, data);
|
handle_serial_device_events(type, data);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
ret = ERROR_CALL_NOT_IMPLEMENTED;
|
ret = ERROR_CALL_NOT_IMPLEMENTED;
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue