Skip to content

Commit

Permalink
update astyle formatting
Browse files Browse the repository at this point in the history
- add flag to add brackets to unbracketed one line conditional statements
  • Loading branch information
slabasan committed Jan 17, 2024
1 parent 000f6fa commit 2f650d3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions scripts/check-cpp-c-format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ astyle --errors-to-stdout \
--break-after-logical \
--indent-switches \
--formatted \
--add-brackets \
${FILES}

#
4 changes: 4 additions & 0 deletions src/powmon/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ void parse_json_obj(char *s, int num_sockets)
}

if ((i + 1) == num_sockets)
{
write_header = false;
}
}

}
Expand Down Expand Up @@ -168,7 +170,9 @@ void take_measurement(bool measure_all)

// Verbose output with all sensors/registers
if (measure_all == true)
{
variorum_monitoring(logfile);
}

#if 0
total_joules += rapl_data[0] + rapl_data[1];
Expand Down
2 changes: 2 additions & 0 deletions src/variorum/AMD/config_amd.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ int set_amd_func_ptrs(int idx)
}
}
else
{
return VARIORUM_ERROR_UNSUPPORTED_PLATFORM;
}

/* smi monitor initialization */
ret = esmi_init();
Expand Down

0 comments on commit 2f650d3

Please sign in to comment.