|
From: <sv...@va...> - 2007-09-24 13:23:56
|
Author: dirk
Date: 2007-09-24 14:23:53 +0100 (Mon, 24 Sep 2007)
New Revision: 6907
Log:
fix various format string errors
Modified:
trunk/massif/ms_main.c
Modified: trunk/massif/ms_main.c
===================================================================
--- trunk/massif/ms_main.c 2007-09-24 02:43:46 UTC (rev 6906)
+++ trunk/massif/ms_main.c 2007-09-24 13:23:53 UTC (rev 6907)
@@ -1305,7 +1305,7 @@
SPRINTF(buf, /*" (%d ms/sample)\"\n"*/ "\"\n"
"DATE \"\"\n"
"SAMPLE_UNIT \"ms\"\n"
- "VALUE_UNIT \"bytes\"\n", ms_interval);
+ "VALUE_UNIT \"bytes\"\n" /*, ms_interval*/);
// Censi
for (i = 0; i < curr_census; i++) {
@@ -1500,9 +1500,9 @@
// Remember: exact_ST_dbld is space.time *doubled*
perc = make_perc(xpt->exact_ST_dbld / 2, total_spacetime);
if (is_HTML) {
- SPRINTF(buf, "<a name=\"b%x\"></a>"
+ SPRINTF(buf, "<a name=\"b%p\"></a>"
"Context accounted for "
- "<a href=\"#a%x\">%s</a> of measured spacetime<br>\n",
+ "<a href=\"#a%p\">%s</a> of measured spacetime<br>\n",
xpt, xpt, perc);
} else {
SPRINTF(buf, "Context accounted for %s of measured spacetime\n",
@@ -1535,10 +1535,10 @@
perc = make_perc(child->exact_ST_dbld / 2, total_spacetime);
ip_desc = VG_(describe_IP)(child->ip-1, buf2, BUF_LEN);
if (is_HTML) {
- SPRINTF(buf, "<li><a name=\"a%x\"></a>", child );
+ SPRINTF(buf, "<li><a name=\"a%p\"></a>", child );
if (child->n_children > 0) {
- SPRINTF(buf, "<a href=\"#b%x\">%s</a>", child, perc);
+ SPRINTF(buf, "<a href=\"#b%p\">%s</a>", child, perc);
} else {
SPRINTF(buf, "%s", perc);
}
|