From: David Date: Tue, 24 Nov 2015 12:49:31 +0000 (+0100) Subject: Fix the lprintf method (libretro side) X-Git-Tag: v1.93~54 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e38b1f0d61b1f3d22cb253921afad8c84691bc4;p=picodrive.git Fix the lprintf method (libretro side) The lprintf method used the format string instead of the buffer build from va_list --- diff --git a/pico/media.c b/pico/media.c index 3ba45324..b7fa7f56 100644 --- a/pico/media.c +++ b/pico/media.c @@ -244,7 +244,7 @@ enum media_type_e PicoLoadMedia(const char *filename, rom = pm_open(rom_fname); if (rom == NULL) { - lprintf("Failed to open ROM"); + lprintf("Failed to open ROM\n"); media_type = PM_ERROR; goto out; } @@ -252,9 +252,9 @@ enum media_type_e PicoLoadMedia(const char *filename, ret = PicoCartLoad(rom, &rom_data, &rom_size, (PicoAHW & PAHW_SMS) ? 1 : 0); pm_close(rom); if (ret != 0) { - if (ret == 2) lprintf("Out of memory"); - else if (ret == 3) lprintf("Read failed"); - else lprintf("PicoCartLoad() failed."); + if (ret == 2) lprintf("Out of memory\n"); + else if (ret == 3) lprintf("Read failed\n"); + else lprintf("PicoCartLoad() failed.\n"); media_type = PM_ERROR; goto out; }