naccyde / rpms / systemd

Forked from rpms/systemd a year ago
Clone
dd65c9
From b5b6f19445904feff90d6b2f9651ba51ef405144 Mon Sep 17 00:00:00 2001
dd65c9
From: Jan Synacek <jsynacek@redhat.com>
dd65c9
Date: Thu, 7 Sep 2017 14:43:07 +0200
dd65c9
Subject: [PATCH] sd-bus/bus-kernel.c: fix format errors on ppc64le
dd65c9
dd65c9
RHEL-only
dd65c9
dd65c9
Related: #1447937
dd65c9
---
dd65c9
 src/libsystemd/sd-bus/bus-kernel.c | 6 +++---
dd65c9
 1 file changed, 3 insertions(+), 3 deletions(-)
dd65c9
dd65c9
diff --git a/src/libsystemd/sd-bus/bus-kernel.c b/src/libsystemd/sd-bus/bus-kernel.c
Pablo Greco 48fc63
index e90ee449d9..d1c90858ee 100644
dd65c9
--- a/src/libsystemd/sd-bus/bus-kernel.c
dd65c9
+++ b/src/libsystemd/sd-bus/bus-kernel.c
dd65c9
@@ -763,7 +763,7 @@ static int bus_kernel_make_message(sd_bus *bus, struct kdbus_msg *k) {
dd65c9
                         break;
dd65c9
 
dd65c9
                 default:
dd65c9
-                        log_debug("Got unknown field from kernel %llu", d->type);
dd65c9
+                        log_debug("Got unknown field from kernel %llu", (unsigned long long) d->type);
dd65c9
                 }
dd65c9
         }
dd65c9
 
dd65c9
@@ -1244,7 +1244,7 @@ static int translate_id_change(
dd65c9
         assert(k);
dd65c9
         assert(d);
dd65c9
 
dd65c9
-        sprintf(owner, ":1.%llu", d->id_change.id);
dd65c9
+        sprintf(owner, ":1.%llu", (unsigned long long) d->id_change.id);
dd65c9
 
dd65c9
         return push_name_owner_changed(
dd65c9
                         bus, owner,
dd65c9
@@ -1317,7 +1317,7 @@ static int bus_kernel_translate_message(sd_bus *bus, struct kdbus_msg *k) {
dd65c9
                                 return -EBADMSG;
dd65c9
                         found = d;
dd65c9
                 } else
dd65c9
-                        log_debug("Got unknown field from kernel %llu", d->type);
dd65c9
+                        log_debug("Got unknown field from kernel %llu", (unsigned long long) d->type);
dd65c9
         }
dd65c9
 
dd65c9
         if (!found) {