int ret;\r
ret=sqlite3_exec(db,stmt,callback,cr,&errmsg);\r
if(ret != SQLITE_OK) {\r
- printf("Error in creation: %s.\n", errmsg);\r
+ ms_error("Error in creation: %s.\n", errmsg);\r
sqlite3_free(errmsg);\r
}\r
}\r
ret=sqlite3_exec(db,"CREATE TABLE if not exists history (id INTEGER PRIMARY KEY AUTOINCREMENT, localContact TEXT NOT NULL, remoteContact TEXT NOT NULL, direction INTEGER, message TEXT, time TEXT NOT NULL, read INTEGER, status INTEGER);",\r
0,0,&errmsg);\r
if(ret != SQLITE_OK) {\r
- printf("Error in creation: %s.\n", errmsg);\r
+ ms_error("Error in creation: %s.\n", errmsg);\r
sqlite3_free(errmsg);\r
}\r
}\r
ret=sqlite3_open(lc->chat_db_file,&db);\r
if(ret != SQLITE_OK) {\r
errmsg=sqlite3_errmsg(db);\r
- printf("Error in the opening: %s.\n", errmsg);\r
+ ms_error("Error in the opening: %s.\n", errmsg);\r
sqlite3_close(db);\r
}\r
linphone_create_table(db);\r