teknoraver / rpms / systemd

Forked from rpms/systemd 3 months ago
Clone

Blame SOURCES/0510-sd-bus-bus-kernel.c-fix-format-errors-on-ppc64le.patch

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