From e3ecd2feb893d4284fc0a037f5510108bb24d135 Mon Sep 17 00:00:00 2001 From: Avenger Date: Sun, 7 Nov 2010 14:14:00 +0100 Subject: [PATCH] print filename when encountering invalid seek position --- gemrb/core/System/FileStream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gemrb/core/System/FileStream.cpp b/gemrb/core/System/FileStream.cpp index a00510a94..eeeabc103 100644 --- a/gemrb/core/System/FileStream.cpp +++ b/gemrb/core/System/FileStream.cpp @@ -231,7 +231,7 @@ int FileStream::Seek(int newpos, int type) return GEM_ERROR; } if (Pos>size) { - printf("[Streams]: Invalid seek position: %ld (limit: %ld)\n",Pos, size); + printf("[Streams]: Invalid seek position %ld in file %s (limit: %ld)\n",Pos, filename, size); return GEM_ERROR; } return GEM_OK; -- 2.11.4.GIT