Blame SOURCES/0135-dd-fix-a-warning-in-printf-for-st_nlink.patch

28bab8
From 58beaa6926d739ab0219f9a1d9e967f8b56590ea Mon Sep 17 00:00:00 2001
28bab8
From: Jakub Filak <jfilak@redhat.com>
28bab8
Date: Tue, 5 May 2015 14:50:22 +0200
28bab8
Subject: [LIBREPORT PATCH] dd: fix a warning in printf for st_nlink
28bab8
28bab8
nlink_t cannot be automatically casted to unsigned long on s390
28bab8
28bab8
Signed-off-by: Jakub Filak <jfilak@redhat.com>
28bab8
---
28bab8
 src/lib/dump_dir.c | 2 +-
28bab8
 1 file changed, 1 insertion(+), 1 deletion(-)
28bab8
28bab8
diff --git a/src/lib/dump_dir.c b/src/lib/dump_dir.c
28bab8
index a0e96e4..04caa06 100644
28bab8
--- a/src/lib/dump_dir.c
28bab8
+++ b/src/lib/dump_dir.c
28bab8
@@ -141,7 +141,7 @@ int secure_openat_read(int dir_fd, const char *pathname)
28bab8
 
28bab8
     if (!S_ISREG(path_sb.st_mode) || path_sb.st_nlink > 1)
28bab8
     {
28bab8
-        log_notice("Path isn't a regular file or has more links (%lu)", path_sb.st_nlink);
28bab8
+        log_notice("Path isn't a regular file or has more links (%lu)", (unsigned long)path_sb.st_nlink);
28bab8
         errno = EINVAL;
28bab8
         close(path_fd);
28bab8
         return -1;
28bab8
-- 
28bab8
1.8.3.1
28bab8