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

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