mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-07 08:07:20 +02:00
Apply format corrections
This commit is contained in:
parent
142b2fb32d
commit
ff1a838ab7
@ -547,7 +547,6 @@ void config_get_nv_core_clock_mhz_offset(GameModeConfig *self, long *value)
|
|||||||
void config_get_nv_mem_clock_mhz_offset(GameModeConfig *self, long *value)
|
void config_get_nv_mem_clock_mhz_offset(GameModeConfig *self, long *value)
|
||||||
{
|
{
|
||||||
memcpy_locked_config(self, value, &self->nv_mem_clock_mhz_offset, sizeof(long));
|
memcpy_locked_config(self, value, &self->nv_mem_clock_mhz_offset, sizeof(long));
|
||||||
|
|
||||||
}
|
}
|
||||||
void config_get_nv_perf_level(GameModeConfig *self, long *value)
|
void config_get_nv_perf_level(GameModeConfig *self, long *value)
|
||||||
{
|
{
|
||||||
|
@ -124,9 +124,11 @@ int game_mode_initialise_gpu(GameModeConfig *config, GameModeGPUInfo **info)
|
|||||||
|
|
||||||
/* Sanity check the performance level value as well */
|
/* Sanity check the performance level value as well */
|
||||||
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 invalid (%ld), will not apply optimisations!\n", new_info->nv_perf_level );
|
"ERROR: NVIDIA Performance level value invalid (%ld), will not apply "
|
||||||
|
"optimisations!\n",
|
||||||
|
new_info->nv_perf_level);
|
||||||
free(new_info);
|
free(new_info);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,8 @@ POSSIBILITY OF SUCH DAMAGE.
|
|||||||
#include "gpu-control.h"
|
#include "gpu-control.h"
|
||||||
|
|
||||||
/* Helper to quit with usage */
|
/* Helper to quit with usage */
|
||||||
static const char *usage_text = "usage: gpuclockctl PCI_ID DEVICE [get] [set CORE MEM [PERF_LEVEL]]]";
|
static const char *usage_text =
|
||||||
|
"usage: gpuclockctl PCI_ID DEVICE [get] [set CORE MEM [PERF_LEVEL]]]";
|
||||||
static void print_usage_and_exit(void)
|
static void print_usage_and_exit(void)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "%s\n", usage_text);
|
fprintf(stderr, "%s\n", usage_text);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user