[sysprof] tests: use integer types



commit 0518cae7f974b356b0571a1db53019b11a62643b
Author: Christian Hergert <chergert redhat com>
Date:   Thu Nov 4 20:07:54 2021 -0700

    tests: use integer types
    
    So we can catch negative values.

 src/tests/find-temp-allocs.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/tests/find-temp-allocs.c b/src/tests/find-temp-allocs.c
index f47025e7..5ea9f356 100644
--- a/src/tests/find-temp-allocs.c
+++ b/src/tests/find-temp-allocs.c
@@ -130,10 +130,10 @@ find_temp_allocs (SysprofCaptureReader *reader)
         }
     }
 
-  g_printerr ("Allocations: %"G_GUINT64_FORMAT"\n", allocinfo.total);
-  g_printerr ("  Temporary: %"G_GUINT64_FORMAT" (%lf%%)\n",
+  g_printerr ("Allocations: %"G_GINT64_FORMAT"\n", allocinfo.total);
+  g_printerr ("  Temporary: %"G_GINT64_FORMAT" (%lf%%)\n",
               allocinfo.temp, allocinfo.temp / (gdouble)allocinfo.total * 100.0);
-  g_printerr ("     Leaked: %"G_GUINT64_FORMAT"\n", allocinfo.leaked);
+  g_printerr ("     Leaked: %"G_GINT64_FORMAT"\n", allocinfo.leaked);
 }
 
 gint


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]