]> www.infradead.org Git - users/mchehab/rasdaemon.git/commitdiff
Get rid of ras-record warnings
authorMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 23 May 2013 17:58:21 +0000 (14:58 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 23 May 2013 17:58:21 +0000 (14:58 -0300)
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
ras-record.c

index d79bdc9343c90383085a555cce18b5907d0b2fc8..8647ccaf788b7346b9e1d0b026af5e987d7effc7 100644 (file)
@@ -99,7 +99,7 @@ static int ras_mc_prepare_stmt(struct sqlite3_priv *priv)
 
 int ras_mc_event_opendb(unsigned cpu, struct ras_events *ras)
 {
-       int rc, i;
+       int rc;
        sqlite3 *db;
        char sql[1024];
        struct sqlite3_priv *priv;
@@ -157,7 +157,7 @@ int ras_mc_event_opendb(unsigned cpu, struct ras_events *ras)
        if (rc == SQLITE_OK)
                log(TERM, LOG_INFO,
                    "cpu %u: Recording events at %s\n",
-                   cpu, SQLITE_RAS_DB, rc);
+                   cpu, SQLITE_RAS_DB);
 
        return 0;
 }