]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fixed debug code so that it compiles and fixed a printf to report the
authorTom Hughes <tom@compton.nu>
Mon, 18 Jul 2005 09:41:57 +0000 (09:41 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 18 Jul 2005 09:41:57 +0000 (09:41 +0000)
start and end as (apparently) intended.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4157

memcheck/mac_leakcheck.c

index 9c68d640842050cf1965fc8311fb40d9d1600244..e55d92db5e9601f5ee1a73de5107ed8f4b575a91 100644 (file)
@@ -132,9 +132,9 @@ Int find_shadow_for_OLD ( Addr        ptr,
 {
    Int  i;
    Addr a_lo, a_hi;
-   PROF_EVENT(70);
+   PROF_EVENT(70, "find_shadow_for_OLD");
    for (i = 0; i < n_shadows; i++) {
-      PROF_EVENT(71);
+      PROF_EVENT(71, "find_shadow_for_OLD(loop)");
       a_lo = shadows[i]->data;
       a_hi = ((Addr)shadows[i]->data) + shadows[i]->size;
       if (a_lo <= ptr && ptr <= a_hi)
@@ -387,7 +387,7 @@ static void _lc_scan_memory(Addr start, SizeT len, Int clique)
    vki_sigset_t sigmask;
 
    if (VG_DEBUG_LEAKCHECK)
-      VG_(printf)("scan %p-%p\n", start, len);
+      VG_(printf)("scan %p-%p\n", start, start+len);
    VG_(sigprocmask)(VKI_SIG_SETMASK, NULL, &sigmask);
    VG_(set_fault_catcher)(scan_all_valid_memory_catcher);