From: Nicholas Nethercote Date: Mon, 8 Mar 2004 15:37:58 +0000 (+0000) Subject: Turn off warning with -q. X-Git-Tag: svn/VALGRIND_2_1_1~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8ee17cb4b7e2a86460985bb06fdc2801051c6a9f;p=thirdparty%2Fvalgrind.git Turn off warning with -q. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2295 --- diff --git a/memcheck/mc_main.c b/memcheck/mc_main.c index 3cc44deab6..6d800ded65 100644 --- a/memcheck/mc_main.c +++ b/memcheck/mc_main.c @@ -284,11 +284,13 @@ static void set_address_range_perms ( Addr a, UInt len, if (len == 0) return; - if (len > 100 * 1000 * 1000) { - VG_(message)(Vg_UserMsg, - "Warning: set address range perms: " - "large range %u, a %d, v %d", - len, example_a_bit, example_v_bit ); + if (VG_(clo_verbosity) > 0) { + if (len > 100 * 1000 * 1000) { + VG_(message)(Vg_UserMsg, + "Warning: set address range perms: " + "large range %u, a %d, v %d", + len, example_a_bit, example_v_bit ); + } } VGP_PUSHCC(VgpSetMem);