From Tom Hughes: patch to report port numbers correctly


git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2210 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/vg_syscalls.c b/coregrind/vg_syscalls.c
index 1e4fe25..ee59173 100644
--- a/coregrind/vg_syscalls.c
+++ b/coregrind/vg_syscalls.c
@@ -540,7 +540,7 @@
          VG_(sprintf)(name, "%u.%u.%u.%u:%u",
                       addr & 0xFF, (addr>>8) & 0xFF,
                       (addr>>16) & 0xFF, (addr>>24) & 0xFF,
-                      sa->sin_port);
+                      ntohs(sa->sin_port));
       }
    }