dcavalca / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone
Blob Blame History Raw
From b5b6f19445904feff90d6b2f9651ba51ef405144 Mon Sep 17 00:00:00 2001
From: Jan Synacek <jsynacek@redhat.com>
Date: Thu, 7 Sep 2017 14:43:07 +0200
Subject: [PATCH] sd-bus/bus-kernel.c: fix format errors on ppc64le

RHEL-only

Related: #1447937
---
 src/libsystemd/sd-bus/bus-kernel.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/libsystemd/sd-bus/bus-kernel.c b/src/libsystemd/sd-bus/bus-kernel.c
index e90ee449d9..d1c90858ee 100644
--- a/src/libsystemd/sd-bus/bus-kernel.c
+++ b/src/libsystemd/sd-bus/bus-kernel.c
@@ -763,7 +763,7 @@ static int bus_kernel_make_message(sd_bus *bus, struct kdbus_msg *k) {
                         break;
 
                 default:
-                        log_debug("Got unknown field from kernel %llu", d->type);
+                        log_debug("Got unknown field from kernel %llu", (unsigned long long) d->type);
                 }
         }
 
@@ -1244,7 +1244,7 @@ static int translate_id_change(
         assert(k);
         assert(d);
 
-        sprintf(owner, ":1.%llu", d->id_change.id);
+        sprintf(owner, ":1.%llu", (unsigned long long) d->id_change.id);
 
         return push_name_owner_changed(
                         bus, owner,
@@ -1317,7 +1317,7 @@ static int bus_kernel_translate_message(sd_bus *bus, struct kdbus_msg *k) {
                                 return -EBADMSG;
                         found = d;
                 } else
-                        log_debug("Got unknown field from kernel %llu", d->type);
+                        log_debug("Got unknown field from kernel %llu", (unsigned long long) d->type);
         }
 
         if (!found) {