]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Turn off warning with -q.
authorNicholas Nethercote <n.nethercote@gmail.com>
Mon, 8 Mar 2004 15:37:58 +0000 (15:37 +0000)
committerNicholas Nethercote <n.nethercote@gmail.com>
Mon, 8 Mar 2004 15:37:58 +0000 (15:37 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2295

memcheck/mc_main.c

index 3cc44deab653f0918db4fe449102b85dc23a0349..6d800ded65c29b2580e8764ec3c1843405937645 100644 (file)
@@ -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);