From eedbd1e81cab04d627e2ba8942f6eb48bffe07b1 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 18 Sep 2012 12:15:43 -0700 Subject: [PATCH] Improve a couple error traces with the HRTF loader --- Alc/hrtf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Alc/hrtf.c b/Alc/hrtf.c index 10243c38..fd2f9f62 100644 --- a/Alc/hrtf.c +++ b/Alc/hrtf.c @@ -723,7 +723,7 @@ static struct Hrtf *LoadHrtf(ALuint deviceRate) } if(fread(magic, 1, sizeof(magic), f) != sizeof(magic)) - ERR("Failed to read magic marker\n"); + ERR("Failed to read header from %s\n", fname); else { if(memcmp(magic, magicMarker00, sizeof(magicMarker00)) == 0) @@ -737,7 +737,7 @@ static struct Hrtf *LoadHrtf(ALuint deviceRate) Hrtf = LoadHrtf01(f, deviceRate); } else - ERR("Invalid magic marker: \"%.8s\"\n", magic); + ERR("Invalid header in %s: \"%.8s\"\n", fname, magic); } fclose(f);