From: Nicholas Nethercote Date: Thu, 5 Aug 2004 12:16:13 +0000 (+0000) Subject: Make error messages more informative. X-Git-Tag: svn/VALGRIND_2_2_0~65 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4c301a9a111545d1316e0b98326579a1be40ab8;p=thirdparty%2Fvalgrind.git Make error messages more informative. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2571 --- diff --git a/coregrind/stage1.c b/coregrind/stage1.c index ce408d7986..4fab73360f 100644 --- a/coregrind/stage1.c +++ b/coregrind/stage1.c @@ -149,7 +149,7 @@ static void *fix_auxv(void *v_init_esp, const struct exeinfo *info, /* If we didn't see all the entries we need to fix up, then we can't make the new executable viable. */ if (seen != 0xf) { - fprintf(stderr, "fix_auxv: we didn't see enough auxv entries (seen=%x)\n", seen); + fprintf(stderr, "valgrind: we didn't see enough auxv entries (seen=%x)\n", seen); exit(1); } @@ -188,7 +188,7 @@ static void hoops(void) err = do_exec(buf, &info); if (err != 0) { - fprintf(stderr, "failed to load %s: %s\n", + fprintf(stderr, "valgrind: failed to load %s: %s\n", buf, strerror(err)); exit(1); } diff --git a/coregrind/ume.c b/coregrind/ume.c index d7c1880392..735904d227 100644 --- a/coregrind/ume.c +++ b/coregrind/ume.c @@ -491,7 +491,9 @@ static int load_ELF(char *hdr, int len, int fd, const char *name, if (minaddr >= maxaddr || (minaddr < info->exe_base || maxaddr > info->exe_end)) { - fprintf(stderr, "Executable is mapped outside of range %p-%p\n", + fprintf(stderr, "Executable range %p-%p is outside the\n" + "acceptable range %p-%p\n", + (void *)minaddr, (void *)maxaddr, (void *)info->exe_base, (void *)info->exe_end); return ENOMEM; }