Apply format corrections

This commit is contained in:
Marc Di Luzio 2019-02-03 18:37:17 +00:00
parent 142b2fb32d
commit ff1a838ab7
3 changed files with 10 additions and 8 deletions

View File

@ -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)
{
memcpy_locked_config(self, value, &self->nv_mem_clock_mhz_offset, sizeof(long));
}
void config_get_nv_perf_level(GameModeConfig *self, long *value)
{

View File

@ -124,9 +124,11 @@ int game_mode_initialise_gpu(GameModeConfig *config, GameModeGPUInfo **info)
/* Sanity check the performance level value as well */
config_get_nv_perf_level(config, &new_info->nv_perf_level);
if(new_info->nv_perf_level < 0 || new_info->nv_perf_level > 16)
{
LOG_ERROR( "ERROR: NVIDIA Performance level value invalid (%ld), will not apply optimisations!\n", new_info->nv_perf_level );
if (new_info->nv_perf_level < 0 || new_info->nv_perf_level > 16) {
LOG_ERROR(
"ERROR: NVIDIA Performance level value invalid (%ld), will not apply "
"optimisations!\n",
new_info->nv_perf_level);
free(new_info);
return -1;
}

View File

@ -36,7 +36,8 @@ POSSIBILITY OF SUCH DAMAGE.
#include "gpu-control.h"
/* 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)
{
fprintf(stderr, "%s\n", usage_text);