|
|
d9e469 |
commit d3d336471119f16368e40b68643d9dd928be5385
|
|
|
d9e469 |
Author: Luck, Tony <tony.luck@intel.com>
|
|
|
d9e469 |
Date: Mon Apr 7 12:23:25 2014 -0700
|
|
|
d9e469 |
|
|
|
d9e469 |
rasdaemon: fix some typos and cut/paste errors in sqlite bits
|
|
|
d9e469 |
|
|
|
d9e469 |
aer event has the error_type as field 2 and msg as field 3 - but the calls
|
|
|
d9e469 |
the sqlite3_bind_text use 3 and 4.
|
|
|
d9e469 |
|
|
|
d9e469 |
mce event forgot to declare the "mcastatus_msg"
|
|
|
d9e469 |
|
|
|
d9e469 |
Signed-off-by: Tony Luck <tony.luck@intel.com>
|
|
|
d9e469 |
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
|
|
|
d9e469 |
|
|
|
d9e469 |
diff --git a/ras-record.c b/ras-record.c
|
|
|
d9e469 |
index daa3cb1..e602edb 100644
|
|
|
d9e469 |
--- a/ras-record.c
|
|
|
d9e469 |
+++ b/ras-record.c
|
|
|
d9e469 |
@@ -139,8 +139,8 @@ int ras_store_aer_event(struct ras_events *ras, struct ras_aer_event *ev)
|
|
|
d9e469 |
log(TERM, LOG_INFO, "aer_event store: %p\n", priv->stmt_aer_event);
|
|
|
d9e469 |
|
|
|
d9e469 |
sqlite3_bind_text(priv->stmt_aer_event, 1, ev->timestamp, -1, NULL);
|
|
|
d9e469 |
- sqlite3_bind_text(priv->stmt_aer_event, 3, ev->error_type, -1, NULL);
|
|
|
d9e469 |
- sqlite3_bind_text(priv->stmt_aer_event, 4, ev->msg, -1, NULL);
|
|
|
d9e469 |
+ sqlite3_bind_text(priv->stmt_aer_event, 2, ev->error_type, -1, NULL);
|
|
|
d9e469 |
+ sqlite3_bind_text(priv->stmt_aer_event, 3, ev->msg, -1, NULL);
|
|
|
d9e469 |
|
|
|
d9e469 |
rc = sqlite3_step(priv->stmt_aer_event);
|
|
|
d9e469 |
if (rc != SQLITE_OK && rc != SQLITE_DONE)
|
|
|
d9e469 |
@@ -189,6 +189,7 @@ static const struct db_fields mce_record_fields[] = {
|
|
|
d9e469 |
{ .name="error_msg", .type="TEXT" },
|
|
|
d9e469 |
{ .name="mcgstatus_msg", .type="TEXT" },
|
|
|
d9e469 |
{ .name="mcistatus_msg", .type="TEXT" }, // 20
|
|
|
d9e469 |
+ { .name="mcastatus_msg", .type="TEXT" },
|
|
|
d9e469 |
{ .name="user_action", .type="TEXT" },
|
|
|
d9e469 |
{ .name="mc_location", .type="TEXT" },
|
|
|
d9e469 |
};
|