[sysprof] tests: fix 32-bit build for %lx usage



commit 5d26daf009145f526b010d0e3b3ec038183542c2
Author: Christian Hergert <chergert redhat com>
Date:   Sat Aug 3 15:44:48 2019 -0700

    tests: fix 32-bit build for %lx usage

 src/tests/test-resolvers.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/tests/test-resolvers.c b/src/tests/test-resolvers.c
index f446476..8ba2eac 100644
--- a/src/tests/test-resolvers.c
+++ b/src/tests/test-resolvers.c
@@ -66,7 +66,7 @@ main (gint  argc,
 
            if (sysprof_address_is_context_switch (addr, &context))
              {
-               g_print ("  %02d: %016lx: Context Switch\n", a, addr);
+               g_print ("  %02d: %016"G_GINT64_MODIFIER"x: Context Switch\n", a, addr);
                last_context = context;
                continue;
              }
@@ -86,14 +86,14 @@ main (gint  argc,
 
               if (symbol != NULL)
                 {
-                  g_print ("  %02d: %016lx: %s\n", a, addr, symbol);
+                  g_print ("  %02d: %016"G_GINT64_MODIFIER"x: %s\n", a, addr, symbol);
                   found = TRUE;
                   break;
                 }
             }
 
           if (!found)
-            g_print ("  %02d: %016lx: \n", a, addr);
+            g_print ("  %02d: %016"G_GINT64_MODIFIER"x: \n", a, addr);
         }
     }
 


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