Apply clang-format to CPU pinning and parking code

The original PR #416 failed the format check, but this wasn't apparent
until after merging.
This commit is contained in:
Ahsan Fayaz
2023-12-04 15:33:15 +00:00
parent 775c93001c
commit fad889db45
6 changed files with 32 additions and 37 deletions

View File

@@ -31,9 +31,9 @@ POSSIBILITY OF SUCH DAMAGE.
#define _GNU_SOURCE
#include <linux/limits.h>
#include <sched.h>
#include <unistd.h>
#include <linux/limits.h>
#include "common-cpu.h"
#include "common-logging.h"
@@ -91,8 +91,8 @@ static int set_state(char *cpulist, int state)
/* on some systems one cannot park core #0 */
if (cpu != 0) {
if (state == '0') {
LOG_ERROR("unable to park core #%ld, will not apply cpu core parking!\n",
cpu);
LOG_ERROR("unable to park core #%ld, will not apply cpu core parking!\n",
cpu);
return -1;
}