Fixes for compilation warnings from the apparently very strict
gcc-4.3.2 shipped with Ubuntu 8.10.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8723 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/callgrind/debug.c b/callgrind/debug.c
index f9bb820..9a49081 100644
--- a/callgrind/debug.c
+++ b/callgrind/debug.c
@@ -41,7 +41,7 @@
/* max of 40 spaces */
char sp[] = " ";
if (s>40) s=40;
- VG_(printf)(sp+40-s);
+ VG_(printf)("%s", sp+40-s);
}
void CLG_(print_bb)(int s, BB* bb)
@@ -168,7 +168,7 @@
if (es->e[i-1].nextTop == i)
VG_(printf)("| ");
}
- VG_(printf)(es->e[i].type->name);
+ VG_(printf)("%s", es->e[i].type->name);
}
}
VG_(printf)("\n");