|
|
073af0 |
From 08c98eda94381f0147af5783960121574043fa5a Mon Sep 17 00:00:00 2001
|
|
|
073af0 |
From: Jonathan Lebon <jonathan@jlebon.com>
|
|
|
073af0 |
Date: Wed, 25 Sep 2019 12:42:59 -0400
|
|
|
073af0 |
Subject: [PATCH] app/status: Fix printf format string for 32-bit
|
|
|
073af0 |
|
|
|
073af0 |
Hit this when compiling in Koji.
|
|
|
073af0 |
---
|
|
|
073af0 |
src/app/rpmostree-builtin-status.c | 4 ++--
|
|
|
073af0 |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
073af0 |
|
|
|
073af0 |
diff --git a/src/app/rpmostree-builtin-status.c b/src/app/rpmostree-builtin-status.c
|
|
|
073af0 |
index 2bc2c4b5..8b38fc83 100644
|
|
|
073af0 |
--- a/src/app/rpmostree-builtin-status.c
|
|
|
073af0 |
+++ b/src/app/rpmostree-builtin-status.c
|
|
|
073af0 |
@@ -1119,7 +1119,7 @@ fetch_history_deployment_gvariant (RORHistoryEntry *entry,
|
|
|
073af0 |
GError **error)
|
|
|
073af0 |
{
|
|
|
073af0 |
g_autofree char *fn =
|
|
|
073af0 |
- g_strdup_printf ("%s/%lu", RPMOSTREE_HISTORY_DIR, entry->deploy_timestamp);
|
|
|
073af0 |
+ g_strdup_printf ("%s/%" PRIu64, RPMOSTREE_HISTORY_DIR, entry->deploy_timestamp);
|
|
|
073af0 |
|
|
|
073af0 |
*out_deployment = NULL;
|
|
|
073af0 |
|
|
|
073af0 |
@@ -1165,7 +1165,7 @@ print_history_entry (RORHistoryEntry *entry,
|
|
|
073af0 |
print_timestamp_and_relative ("BootTimestamp", entry->last_boot_timestamp);
|
|
|
073af0 |
if (entry->boot_count > 1)
|
|
|
073af0 |
{
|
|
|
073af0 |
- g_print ("%s BootCount: %lu; first booted on ",
|
|
|
073af0 |
+ g_print ("%s BootCount: %" PRIu64 "; first booted on ",
|
|
|
073af0 |
libsd_special_glyph (TREE_RIGHT), entry->boot_count);
|
|
|
073af0 |
print_timestamp_and_relative (NULL, entry->first_boot_timestamp);
|
|
|
073af0 |
}
|
|
|
073af0 |
--
|
|
|
073af0 |
2.21.0
|
|
|
073af0 |
|