Small fixes

* format string in debug
* quit SDL subsystem
* some assertions in src/video_frame.c to check allocation success
This commit is contained in:
Martin Pulec
2016-06-28 16:43:42 +02:00
parent 2d79d418ec
commit e4a31eec9f
3 changed files with 6 additions and 2 deletions

View File

@@ -109,8 +109,8 @@ void log_msg(int level, const char *format, ...)
strcat(format_new, color);
}
if (log_level >= LOG_LEVEL_VERBOSE) {
uint64_t time_ms = time_since_epoch_in_ms();
sprintf(format_new + strlen(format_new), "[%ld.%03ld] ", time_ms / 1000,
unsigned long long time_ms = time_since_epoch_in_ms();
sprintf(format_new + strlen(format_new), "[%llu.%03llu] ", time_ms / 1000,
time_ms % 1000);
}
strcat(format_new, format);