fix unused warning, add extra info to cdrom print

This commit is contained in:
Brad Parker 2019-07-31 17:51:54 -04:00
parent f3faecdb27
commit cb2be97e7d
2 changed files with 4 additions and 1 deletions

View File

@ -85,6 +85,9 @@ static void sixel_render_msg(video_frame_info_t *video_info,
sixel_raster_t *font = (sixel_raster_t*)data;
const struct font_params *params = (const struct font_params*)userdata;
(void)newX;
(void)newY;
if (!font || string_is_empty(msg))
return;

View File

@ -296,7 +296,7 @@ bool media_detect_cd_info(const char *path, uint64_t pregap_bytes, media_detect_
if (read_bytes != buf_size)
{
printf("[MEDIA] Could not read from media.\n");
printf("[MEDIA] Could not read from media: got %" PRId64 " bytes instead of %d.\n", read_bytes, buf_size);
fflush(stdout);
filestream_close(file);
free(buf);