From: Julian Seward Date: Fri, 12 Dec 2003 06:40:05 +0000 (+0000) Subject: Reword warning message emitted by fd_allowed() to make it a little clearer. X-Git-Tag: svn/VALGRIND_2_1_0~11 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1bee40d28b5d496c682b99359397d831497ffa32;p=thirdparty%2Fvalgrind.git Reword warning message emitted by fd_allowed() to make it a little clearer. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2102 --- diff --git a/coregrind/vg_syscalls.c b/coregrind/vg_syscalls.c index 6ac5aaea67..29dffb4133 100644 --- a/coregrind/vg_syscalls.c +++ b/coregrind/vg_syscalls.c @@ -783,11 +783,13 @@ void VG_(init_dataseg_end_for_brk) ( void ) static Bool fd_allowed(Int fd, const Char *syscall, ThreadId tid) { if (fd < 0 || fd > VG_MAX_FD || fd == VG_(clo_logfile_fd)) { - VG_(message)(Vg_UserMsg, "Warning: bad use of file descriptor %d in syscall %s()", - fd, syscall); + VG_(message)(Vg_UserMsg, + "Warning: invalid file descriptor %d in syscall %s()", + fd, syscall); if (fd == VG_(clo_logfile_fd)) - VG_(message)(Vg_UserMsg, " Use --logfile-fd= to select an alternative " - "logfile fd."); + VG_(message)(Vg_UserMsg, + " Use --logfile-fd= to select an alternative " + "logfile fd."); if (VG_(clo_verbosity) > 1) { ExeContext *ec = VG_(get_ExeContext)(tid); VG_(pp_ExeContext)(ec);