anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone

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

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