* src/vmcore/statistics.c (statistics_print_gc_memory_usage):
authortwisti <none@none>
Wed, 20 Jun 2007 22:05:10 +0000 (22:05 +0000)
committertwisti <none@none>
Wed, 20 Jun 2007 22:05:10 +0000 (22:05 +0000)
Different print-format for different pointer-sizes.

src/vmcore/statistics.c

index 00546eeb05771efec001185093c69fc1656ace7b..ab49d33bb39b739bf90605449db1b725ffd04c0b 100644 (file)
@@ -22,7 +22,7 @@
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
    02110-1301, USA.
 
-   $Id: statistics.c 8113 2007-06-20 18:05:39Z twisti $
+   $Id: statistics.c 8119 2007-06-20 22:05:10Z twisti $
 
 */
 
@@ -755,7 +755,12 @@ void statistics_print_gc_memory_usage(void)
                if (count == 1)
                        fprintf(opt_ProfileMemoryUsageGNUPlot, "plot \"profile.dat\" using 1:2 with lines title \"max. Java heap size\", \"profile.dat\" using 1:3 with lines title \"Java heap size\", \"profile.dat\" using 1:4 with lines title \"used\", \"profile.dat\" using 1:5 with lines title \"free\"\n");
 
-               fprintf(opt_ProfileMemoryUsageGNUPlot, "%lld %lld% lld %lld %lld\n", count, max, size, used, free);
+#if SIZEOF_VOID_P == 8
+               fprintf(opt_ProfileMemoryUsageGNUPlot, "%ld %ld %ld %ld %ld\n", count, max, size, used, free);
+#else
+               fprintf(opt_ProfileMemoryUsageGNUPlot, "%lld %lld %lld %lld %lld\n", count, max, size, used, free);
+#endif
+
                fflush(opt_ProfileMemoryUsageGNUPlot);
        }
        else {