mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-21 21:28:08 +00:00
Don't use printf
This commit is contained in:
parent
20c646bc4a
commit
0dce1b41db
1 changed files with 3 additions and 3 deletions
|
|
@ -321,7 +321,7 @@ static int migrate_messages(void* data,int argc, char** argv, char** column_name
|
|||
sqlite3_free(buf);
|
||||
}
|
||||
} else {
|
||||
printf("Cannot parse time %s from id %s", argv[1], argv[0]);
|
||||
ms_warning("Cannot parse time %s from id %s\n", argv[1], argv[0]);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -332,10 +332,10 @@ static void linphone_migrate_timestamps(sqlite3* db){
|
|||
|
||||
ret = sqlite3_exec(db,"SELECT id,time,direction FROM history WHERE time != '-1'", migrate_messages, db, &errmsg);
|
||||
if( ret != SQLITE_OK ){
|
||||
printf("Error migrating outgoing messages: %s.\n", errmsg);
|
||||
ms_warning("Error migrating outgoing messages: %s.\n", errmsg);
|
||||
sqlite3_free(errmsg);
|
||||
} else {
|
||||
printf("Migrated message timestamps to UTC\n");
|
||||
ms_message("Migrated message timestamps to UTC\n");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue