From: Florian Krohm Date: Sat, 29 Nov 2014 17:50:10 +0000 (+0000) Subject: Fix a few VG_(message) invocations. The function does not add a X-Git-Tag: svn/VALGRIND_3_11_0~790 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1fde81e7de3194d73db288873666fc108931c3b;p=thirdparty%2Fvalgrind.git Fix a few VG_(message) invocations. The function does not add a newline character under the covers. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14796 --- diff --git a/coregrind/m_syswrap/syswrap-arm-linux.c b/coregrind/m_syswrap/syswrap-arm-linux.c index f9f8dd42b0..955e033495 100644 --- a/coregrind/m_syswrap/syswrap-arm-linux.c +++ b/coregrind/m_syswrap/syswrap-arm-linux.c @@ -497,13 +497,12 @@ PRE(sys_clone) default: /* should we just ENOSYS? */ - VG_(message)(Vg_UserMsg, ""); - VG_(message)(Vg_UserMsg, "Unsupported clone() flags: 0x%lx", ARG1); - VG_(message)(Vg_UserMsg, ""); - VG_(message)(Vg_UserMsg, "The only supported clone() uses are:"); - VG_(message)(Vg_UserMsg, " - via a threads library (LinuxThreads or NPTL)"); - VG_(message)(Vg_UserMsg, " - via the implementation of fork or vfork"); - VG_(message)(Vg_UserMsg, " - for the Quadrics Elan3 user-space driver"); + VG_(message)(Vg_UserMsg, "Unsupported clone() flags: 0x%lx\n", ARG1); + VG_(message)(Vg_UserMsg, "\n"); + VG_(message)(Vg_UserMsg, "The only supported clone() uses are:\n"); + VG_(message)(Vg_UserMsg, " - via a threads library (LinuxThreads or NPTL)\n"); + VG_(message)(Vg_UserMsg, " - via the implementation of fork or vfork\n"); + VG_(message)(Vg_UserMsg, " - for the Quadrics Elan3 user-space driver\n"); VG_(unimplemented) ("Valgrind does not support general clone()."); } diff --git a/coregrind/m_syswrap/syswrap-arm64-linux.c b/coregrind/m_syswrap/syswrap-arm64-linux.c index d90dcb6216..2c7b4596a8 100644 --- a/coregrind/m_syswrap/syswrap-arm64-linux.c +++ b/coregrind/m_syswrap/syswrap-arm64-linux.c @@ -601,13 +601,12 @@ PRE(sys_clone) default: /* should we just ENOSYS? */ - VG_(message)(Vg_UserMsg, ""); - VG_(message)(Vg_UserMsg, "Unsupported clone() flags: 0x%lx", ARG1); - VG_(message)(Vg_UserMsg, ""); - VG_(message)(Vg_UserMsg, "The only supported clone() uses are:"); - VG_(message)(Vg_UserMsg, " - via a threads library (LinuxThreads or NPTL)"); - VG_(message)(Vg_UserMsg, " - via the implementation of fork or vfork"); - VG_(message)(Vg_UserMsg, " - for the Quadrics Elan3 user-space driver"); + VG_(message)(Vg_UserMsg, "Unsupported clone() flags: 0x%lx\n", ARG1); + VG_(message)(Vg_UserMsg, "\n"); + VG_(message)(Vg_UserMsg, "The only supported clone() uses are:\n"); + VG_(message)(Vg_UserMsg, " - via a threads library (LinuxThreads or NPTL)\n"); + VG_(message)(Vg_UserMsg, " - via the implementation of fork or vfork\n"); + VG_(message)(Vg_UserMsg, " - for the Quadrics Elan3 user-space driver\n"); VG_(unimplemented) ("Valgrind does not support general clone()."); } diff --git a/coregrind/m_syswrap/syswrap-darwin.c b/coregrind/m_syswrap/syswrap-darwin.c index de79f057f6..9249e4f16a 100644 --- a/coregrind/m_syswrap/syswrap-darwin.c +++ b/coregrind/m_syswrap/syswrap-darwin.c @@ -647,22 +647,23 @@ void VG_(show_open_ports)(void) OpenPort *i; VG_(message)(Vg_UserMsg, - "MACH PORTS: %d open at exit.", allocated_port_count); + "MACH PORTS: %d open at exit.\n", allocated_port_count); for (i = allocated_ports; i; i = i->next) { if (i->name) { - VG_(message)(Vg_UserMsg, "Open Mach port 0x%x: %s", i->port, i->name); + VG_(message)(Vg_UserMsg, "Open Mach port 0x%x: %s\n", i->port, + i->name); } else { - VG_(message)(Vg_UserMsg, "Open Mach port 0x%x", i->port); + VG_(message)(Vg_UserMsg, "Open Mach port 0x%x\n", i->port); } if (i->where) { VG_(pp_ExeContext)(i->where); - VG_(message)(Vg_UserMsg, ""); + VG_(message)(Vg_UserMsg, "\n"); } } - VG_(message)(Vg_UserMsg, ""); + VG_(message)(Vg_UserMsg, "\n"); } @@ -3997,7 +3998,7 @@ PRE(auditon) break; default: - VG_(message)(Vg_UserMsg, "UNKNOWN auditon cmd %ld", ARG1); + VG_(message)(Vg_UserMsg, "UNKNOWN auditon cmd %ld\n", ARG1); break; } } diff --git a/coregrind/m_syswrap/syswrap-s390x-linux.c b/coregrind/m_syswrap/syswrap-s390x-linux.c index 344b614447..a8e860474d 100644 --- a/coregrind/m_syswrap/syswrap-s390x-linux.c +++ b/coregrind/m_syswrap/syswrap-s390x-linux.c @@ -525,11 +525,11 @@ PRE(sys_clone) default: /* should we just ENOSYS? */ - VG_(message)(Vg_UserMsg, "Unsupported clone() flags: 0x%lx", ARG2); - VG_(message)(Vg_UserMsg, ""); - VG_(message)(Vg_UserMsg, "The only supported clone() uses are:"); - VG_(message)(Vg_UserMsg, " - via a threads library (NPTL)"); - VG_(message)(Vg_UserMsg, " - via the implementation of fork or vfork"); + VG_(message)(Vg_UserMsg, "Unsupported clone() flags: 0x%lx\n", ARG2); + VG_(message)(Vg_UserMsg, "\n"); + VG_(message)(Vg_UserMsg, "The only supported clone() uses are:\n"); + VG_(message)(Vg_UserMsg, " - via a threads library (NPTL)\n"); + VG_(message)(Vg_UserMsg, " - via the implementation of fork or vfork\n"); VG_(unimplemented) ("Valgrind does not support general clone()."); } diff --git a/drd/drd_semaphore.c b/drd/drd_semaphore.c index 514e1eab27..40662b950f 100644 --- a/drd/drd_semaphore.c +++ b/drd/drd_semaphore.c @@ -55,7 +55,7 @@ static void drd_segment_push(struct semaphore_info* p, Segment* sg) tl_assert(sg); n = VG_(addToXA)(p->last_sem_post_seg, &sg); #if 0 - VG_(message)(Vg_DebugMsg, "0x%lx push: added at position %ld/%ld", + VG_(message)(Vg_DebugMsg, "0x%lx push: added at position %ld/%ld\n", p->a1, n, VG_(sizeXA)(p->last_sem_post_seg)); #endif tl_assert(*(Segment**)VG_(indexXA)(p->last_sem_post_seg, n) == sg); @@ -69,7 +69,7 @@ static Segment* drd_segment_pop(struct semaphore_info* p) sz = VG_(sizeXA)(p->last_sem_post_seg); #if 0 - VG_(message)(Vg_DebugMsg, "0x%lx pop: removed from position %ld/%ld", + VG_(message)(Vg_DebugMsg, "0x%lx pop: removed from position %ld/%ld\n", p->a1, sz - 1, sz); #endif sg = 0;