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