From a6d066deb91ea96c08f95212d85369776d7d1e00 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 12 May 2011 17:08:23 -0400 Subject: [PATCH] forgotten patch --- format.patch | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 format.patch diff --git a/format.patch b/format.patch new file mode 100644 index 0000000..5fceee0 --- /dev/null +++ b/format.patch @@ -0,0 +1,26 @@ +diff -up gnome-system-monitor-3.1.1/src/load-graph.cpp.format gnome-system-monitor-3.1.1/src/load-graph.cpp +--- gnome-system-monitor-3.1.1/src/load-graph.cpp.format 2011-05-12 16:55:55.816792353 -0400 ++++ gnome-system-monitor-3.1.1/src/load-graph.cpp 2011-05-12 16:59:03.419446997 -0400 +@@ -433,11 +433,11 @@ net_scale (LoadGraph *g, guint64 din, gu + g_assert(coef10 % g->num_bars() == 0); + + new_max = coef10 * (1UL << guint64(base10 * 10)); +- procman_debug("bak %lu new_max %lu pow2 %lu coef10 %lu", bak_max, new_max, pow2, coef10); ++ procman_debug("bak %lu new_max " G_GUINT64_FORMAT " pow2 " G_GUINT64_FORMAT " coef10 " G_GUINT64_FORMAT, bak_max, new_max, pow2, coef10); + } + + if (bak_max > new_max) { +- procman_debug("overflow detected: bak=%lu new=%lu", bak_max, new_max); ++ procman_debug("overflow detected: bak=" G_GUINT64_FORMAT " new=" G_GUIN64_FORMAT, bak_max, new_max); + new_max = bak_max; + } + +@@ -455,7 +455,7 @@ net_scale (LoadGraph *g, guint64 din, gu + } + } + +- procman_debug("rescale dmax = %lu max = %lu new_max = %lu", dmax, g->net.max, new_max); ++ procman_debug("rescale dmax = " G_GUINT64_FORMAT " max = " G_GUINT64_FORMAT " new_max = " G_GUINT64_FORMAT, dmax, g->net.max, new_max); + + g->net.max = new_max; +