]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Reword warning message emitted by fd_allowed() to make it a little clearer.
authorJulian Seward <jseward@acm.org>
Fri, 12 Dec 2003 06:40:05 +0000 (06:40 +0000)
committerJulian Seward <jseward@acm.org>
Fri, 12 Dec 2003 06:40:05 +0000 (06:40 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2102

coregrind/vg_syscalls.c

index 6ac5aaea6780df1942bd0549d266c9aa821d8b27..29dffb41336eca35abb9383b8eeb4a231615db7a 100644 (file)
@@ -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=<number> to select an alternative "
-                     "logfile fd.");
+        VG_(message)(Vg_UserMsg, 
+            "   Use --logfile-fd=<number> to select an alternative "
+           "logfile fd.");
       if (VG_(clo_verbosity) > 1) {
         ExeContext *ec = VG_(get_ExeContext)(tid);
         VG_(pp_ExeContext)(ec);