Log how SRAM is truncated.

This commit is contained in:
Themaister 2013-10-13 18:53:12 +02:00
parent ad3df7077c
commit 23069b6146
1 changed files with 2 additions and 1 deletions

3
file.c
View File

@ -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);