No functional changes here, just whitespacing cleanups.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
unsigned stringlen;
};
-struct numfield {
+struct numfield {
unsigned start, end;
char *name;
char *fmt;
[K8_MCELOG_THRESHOLD_FBDIMM] = "MC4_MISC3 FBDIMM threshold",
[K8_MCELOG_THRESHOLD_FBDIMM + 1 ...
K8_MCE_THRESHOLD_TOP - K8_MCE_THRESHOLD_BASE - 1] =
- "Unknown threshold counter",
+ "Unknown threshold counter",
};
static char *transaction[] = {
if (e->status & (3ULL << 45)) {
mce_snprintf(e->error_msg,
"Data cache ECC error (syndrome %x)",
- (uint32_t) (e->status >> 47) & 0xff);
+ (uint32_t) (e->status >> 47) & 0xff);
if (e->status & (1ULL << 40))
mce_snprintf(e->error_msg, "found by scrubber");
}
[0x2] = "Internal timeout error",
[0x3] = "Internal timeout error",
[0x4] = "Intel Cache Safe Technology Queue full error\n"
- "or disabled ways in a set overflow",
+ "or disabled ways in a set overflow",
[0x5] = "Quiet cycle timeout error (correctable)",
};
[9] = "D_Parity_Error"
};
-static char *pcu_2[] = {
+static char *pcu_2[] = {
[0x00] = "No Error",
[0x0D] = "MC_IMC_FORCE_SR_S3_TIMEOUT",
[0x0E] = "MC_MC_CPD_UNCPD_ST_TIMEOUT",
[0x81] = "MC_RECOVERABLE_DIE_THERMAL_TOO_HOT",
};
-static struct field pcu_mc4[] = {
+static struct field pcu_mc4[] = {
FIELD(16, pcu_1),
FIELD(24, pcu_2),
{}
[9] = "D_Parity_Error"
};
-static char *pcu_2[] = {
+static char *pcu_2[] = {
[0x00] = "No Error",
[0x0D] = "MC_IMC_FORCE_SR_S3_TIMEOUT",
[0x0E] = "MC_MC_CPD_UNCPD_ST_TIMEOUT",
[0x81] = "MC_RECOVERABLE_DIE_THERMAL_TOO_HOT",
};
-static struct field pcu_mc4[] = {
+static struct field pcu_mc4[] = {
FIELD(16, pcu_1),
FIELD(24, pcu_2),
{}
/* See IA32 SDM Vol3B Appendix E.4.1 ff */
-static struct numfield corr_numbers[] = {
+static struct numfield corr_numbers[] = {
NUMBER(32, 39, "Corrected events"),
{}
};
-static struct numfield ecc_numbers[] = {
- HEXNUMBER(44, 51, "ECC syndrome"),
+static struct numfield ecc_numbers[] = {
+ HEXNUMBER(44, 51, "ECC syndrome"),
{},
};
[0x2] = "Internal timeout error",
[0x3] = "Internal timeout error",
[0x4] = "Intel Cache Safe Technology Queue full error\n"
- "or disabled ways in a set overflow",
+ "or disabled ways in a set overflow",
};
struct field tls_int_status[] = {
}
printf("Listening to events on cpu %d\n", pdata->cpu);
- if (pdata->ras->record_events)
- ras_mc_event_opendb(pdata->cpu, pdata->ras);
+ if (pdata->ras->record_events)
+ ras_mc_event_opendb(pdata->cpu, pdata->ras);
read_ras_event(fd, pdata, kbuf, page);
ras->pevent = pevent;
ras->page_size = page_size;
- ras->record_events = record_events;
+ ras->record_events = record_events;
/* Registers the special event handlers */
pevent_register_event_handler(pevent, -1, "ras", "mc_event",
/* Booleans */
unsigned use_uptime: 1;
- unsigned record_events: 1;
+ unsigned record_events: 1;
- /* For timestamp */
+ /* For timestamp */
time_t uptime_diff;
/* For ras-record */
}
log(ALL, LOG_INFO,
"Unknown Intel CPU type Family %x Model %x\n",
- mce->family, mce->model);
+ mce->family, mce->model);
return mce->family == 6 ? CPU_P6OLD : CPU_GENERIC;
}
char sql[1024];
struct sqlite3_priv *priv;
- printf("Calling %s()\n", __FUNCTION__);
+ printf("Calling %s()\n", __FUNCTION__);
ras->db_priv = NULL;
usleep(10000);
} while (rc == SQLITE_BUSY);
- if (rc != SQLITE_OK) {
+ if (rc != SQLITE_OK) {
log(TERM, LOG_ERR,
"cpu %u: Failed to connect to %s: error = %d\n",
cpu, SQLITE_RAS_DB, rc);