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

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