aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/systemtap/systemtap/x32_abi_time.patch
blob: 28a7eae407a22815612eca10a14ce8ce4e60bd41 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Fix time_t print because in x32 ABI is long long int instead of long int.

Upstream-Status: Pending

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>

diff --git a/cache.cxx b/cache.cxx
index 3546b30..19c77ca 100644
--- a/cache.cxx
+++ b/cache.cxx
@@ -294,7 +294,11 @@ clean_cache(systemtap_session& s)
         {
           //interval not passed, don't continue
           if (s.verbose > 1)
+#if defined(__x86_64__) && defined (__ILP32__)
+            clog << _F("Cache cleaning skipped, interval not reached %lld s / %lu s.",
+#else
             clog << _F("Cache cleaning skipped, interval not reached %lu s / %lu s.",
+#endif
                        (current_time.tv_sec-sb.st_mtime), cache_clean_interval)  << endl;
           return;
         }
@@ -302,7 +306,11 @@ clean_cache(systemtap_session& s)
         {
           //interval reached, continue
           if (s.verbose > 1)
+#if defined(__x86_64__) && defined (__ILP32__)
+            clog << _F("Cleaning cache, interval reached %lld s > %lu s.",
+#else
             clog << _F("Cleaning cache, interval reached %lu s > %lu s.",
+#endif
                        (current_time.tv_sec-sb.st_mtime), cache_clean_interval)  << endl;
         }