From 23069b614650374ee2f6001b1b39999cccef96f6 Mon Sep 17 00:00:00 2001 From: Themaister Date: Sun, 13 Oct 2013 18:53:12 +0200 Subject: [PATCH] Log how SRAM is truncated. --- file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/file.c b/file.c index f74bbea6b8..7c3893a798 100644 --- a/file.c +++ b/file.c @@ -428,7 +428,8 @@ void load_ram_file(const char *path, int type) { if (rc > (ssize_t)size) { - RARCH_WARN("SRAM is larger than implementation expects, doing partial load.\n"); + RARCH_WARN("SRAM is larger than implementation expects, doing partial load (truncating %u bytes to %u).\n", + (unsigned)rc, (unsigned)size); rc = size; } memcpy(data, buf, rc);