Suppress a couple more messages when -q applies.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1821
This commit is contained in:
Julian Seward 2003-09-17 21:48:26 +00:00
parent 76b167b551
commit f08f0f0ca3
2 changed files with 6 additions and 4 deletions

View File

@ -601,7 +601,7 @@ void VG_(do__NR_sigaction) ( ThreadId tid )
return;
bad_signo:
if (VG_(needs).core_errors)
if (VG_(needs).core_errors && VG_(clo_verbosity) >= 1)
VG_(message)(Vg_UserMsg,
"Warning: bad signal number %d in __NR_sigaction.",
signo);
@ -609,7 +609,7 @@ void VG_(do__NR_sigaction) ( ThreadId tid )
return;
bad_sigkill_or_sigstop:
if (VG_(needs).core_errors)
if (VG_(needs).core_errors && VG_(clo_verbosity) >= 1)
VG_(message)(Vg_UserMsg,
"Warning: attempt to set %s handler in __NR_sigaction.",
signo == VKI_SIGKILL ? "SIGKILL" : "SIGSTOP" );

View File

@ -399,8 +399,10 @@ void MAC_(do_detect_memory_leaks) (
if (lc_n_shadows == 0) {
sk_assert(lc_shadows == NULL);
VG_(message)(Vg_UserMsg,
"No malloc'd blocks -- no leaks are possible.");
if (VG_(clo_verbosity) >= 1) {
VG_(message)(Vg_UserMsg,
"No malloc'd blocks -- no leaks are possible.");
}
return;
}