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

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