]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Use __FUNCTION__ correctly.
authorJulian Seward <jseward@acm.org>
Mon, 25 Apr 2005 15:42:57 +0000 (15:42 +0000)
committerJulian Seward <jseward@acm.org>
Mon, 25 Apr 2005 15:42:57 +0000 (15:42 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3565

coregrind/vg_malloc2.c

index 00e0ee421d0e840e4fcc4f5088ea34ffee91dea3..e7aebdd2e7a2dbceaf4720e30ab009cff7cbbfde 100644 (file)
@@ -390,14 +390,16 @@ void VG_(set_client_malloc_redzone_szB)(SizeT rz_szB)
    if (init_done) {
       VG_(printf)(
          "\nTool error:\n"
-         "  __FUNCTION__ cannot be called after the first allocation.\n");
+         "%s cannot be called after the first allocation.\n",
+         __PRETTY_FUNCTION__);
       VG_(exit)(1);
    }
    // This limit is no special figure, just something not too big
    if (rz_szB > 128) {
       VG_(printf)(
          "\nTool error:\n"
-         "  __FUNCTION__ passed a too-big value (%llu)", (ULong)rz_szB);
+         "  %s passed a too-big value (%llu)", 
+         __PRETTY_FUNCTION__, (ULong)rz_szB);
       VG_(exit)(1);
    }
    client_malloc_redzone_szB = rz_szB;