mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-06 23:57:22 +02:00
Remove more duplicate ERROR: logs
This commit is contained in:
parent
ba20df5c47
commit
d1b7c49bc2
@ -77,7 +77,7 @@ int game_mode_initialise_gpu(GameModeConfig *config, GameModeGPUInfo **info)
|
|||||||
/* verify device ID */
|
/* verify device ID */
|
||||||
if (new_info->device == -1) {
|
if (new_info->device == -1) {
|
||||||
LOG_ERROR(
|
LOG_ERROR(
|
||||||
"ERROR: Invalid gpu_device value set in configuration, will not apply "
|
"Invalid gpu_device value set in configuration, will not apply "
|
||||||
"optimisations!\n");
|
"optimisations!\n");
|
||||||
free(new_info);
|
free(new_info);
|
||||||
return -1;
|
return -1;
|
||||||
@ -86,7 +86,7 @@ int game_mode_initialise_gpu(GameModeConfig *config, GameModeGPUInfo **info)
|
|||||||
/* verify GPU vendor */
|
/* verify GPU vendor */
|
||||||
if (!GPUVendorValid(new_info->vendor)) {
|
if (!GPUVendorValid(new_info->vendor)) {
|
||||||
LOG_ERROR(
|
LOG_ERROR(
|
||||||
"ERROR: Invalid gpu_vendor value (0x%04x) set in configuration, will not apply "
|
"Invalid gpu_vendor value (0x%04x) set in configuration, will not apply "
|
||||||
"optimisations!\n",
|
"optimisations!\n",
|
||||||
(unsigned int)new_info->vendor);
|
(unsigned int)new_info->vendor);
|
||||||
LOG_ERROR("Possible values are: 0x%04x (NVIDIA) 0x%04x (AMD) 0x%04x (Intel)\n",
|
LOG_ERROR("Possible values are: 0x%04x (NVIDIA) 0x%04x (AMD) 0x%04x (Intel)\n",
|
||||||
@ -110,7 +110,7 @@ int game_mode_initialise_gpu(GameModeConfig *config, GameModeGPUInfo **info)
|
|||||||
const int nv_mem_hard_limit = 2000;
|
const int nv_mem_hard_limit = 2000;
|
||||||
if (new_info->core > nv_core_hard_limit || new_info->mem > nv_mem_hard_limit) {
|
if (new_info->core > nv_core_hard_limit || new_info->mem > nv_mem_hard_limit) {
|
||||||
LOG_ERROR(
|
LOG_ERROR(
|
||||||
"ERROR: NVIDIA Overclock value above safety levels of +%d (core) +%d (mem), will "
|
"NVIDIA Overclock value above safety levels of +%d (core) +%d (mem), will "
|
||||||
"not overclock!\n",
|
"not overclock!\n",
|
||||||
nv_core_hard_limit,
|
nv_core_hard_limit,
|
||||||
nv_mem_hard_limit);
|
nv_mem_hard_limit);
|
||||||
@ -125,7 +125,7 @@ int game_mode_initialise_gpu(GameModeConfig *config, GameModeGPUInfo **info)
|
|||||||
config_get_nv_perf_level(config, &new_info->nv_perf_level);
|
config_get_nv_perf_level(config, &new_info->nv_perf_level);
|
||||||
if (new_info->nv_perf_level < 0 || new_info->nv_perf_level > 16) {
|
if (new_info->nv_perf_level < 0 || new_info->nv_perf_level > 16) {
|
||||||
LOG_ERROR(
|
LOG_ERROR(
|
||||||
"ERROR: NVIDIA Performance level value likely invalid (%ld), will not apply "
|
"NVIDIA Performance level value likely invalid (%ld), will not apply "
|
||||||
"optimisations!\n",
|
"optimisations!\n",
|
||||||
new_info->nv_perf_level);
|
new_info->nv_perf_level);
|
||||||
free(new_info);
|
free(new_info);
|
||||||
@ -143,9 +143,8 @@ int game_mode_initialise_gpu(GameModeConfig *config, GameModeGPUInfo **info)
|
|||||||
*/
|
*/
|
||||||
const int amd_hard_limit = 20;
|
const int amd_hard_limit = 20;
|
||||||
if (new_info->core > amd_hard_limit || new_info->mem > amd_hard_limit) {
|
if (new_info->core > amd_hard_limit || new_info->mem > amd_hard_limit) {
|
||||||
LOG_ERROR(
|
LOG_ERROR("AMD Overclock value above safety level of %d%%, will not overclock!\n",
|
||||||
"ERROR: AMD Overclock value above safety level of %d%%, will not overclock!\n",
|
amd_hard_limit);
|
||||||
amd_hard_limit);
|
|
||||||
LOG_ERROR("amd_core_clock_percentage:%ld amd_mem_clock_percentage:%ld\n",
|
LOG_ERROR("amd_core_clock_percentage:%ld amd_mem_clock_percentage:%ld\n",
|
||||||
new_info->core,
|
new_info->core,
|
||||||
new_info->mem);
|
new_info->mem);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user