Blame SOURCES/nfs-utils-2.3.3-junction-err-fix.patch

777f42
commit efefa7845601f551820fa17cb0808dbb3c3cc3dd
777f42
Author: Steve Dickson <steved@redhat.com>
777f42
Date:   Wed Nov 13 09:32:00 2019 -0500
777f42
777f42
    junction: Fixed debug statement to compile with -Werror=format=2 flag
777f42
    
777f42
    Signed-off-by: Steve Dickson <steved@redhat.com>
777f42
777f42
diff --git a/support/junction/xml.c b/support/junction/xml.c
777f42
index 79b0770..7005e95 100644
777f42
--- a/support/junction/xml.c
777f42
+++ b/support/junction/xml.c
777f42
@@ -327,8 +327,8 @@ junction_parse_xml_read(const char *pathname, int fd, const char *name,
777f42
 	if (retval != FEDFS_OK)
777f42
 		return retval;
777f42
 
777f42
-	xlog(D_CALL, "%s: XML document contained in junction:\n%.*s",
777f42
-		__func__, len, buf);
777f42
+	xlog(D_CALL, "%s: XML document contained in junction:\n%ld.%s",
777f42
+		__func__, len, (char *)buf);
777f42
 
777f42
 	retval = junction_parse_xml_buf(pathname, name, buf, len, doc);
777f42
 
777f42
commit f7c0c0dc4a02d87965d3fbbab69786ca07fdecea
777f42
Author: Guillaume Rousse <guillomovitch@gmail.com>
777f42
Date:   Fri Nov 22 10:20:03 2019 -0500
777f42
777f42
    fix compilation with  -Werror=format on i586
777f42
    
777f42
    Signed-off-by: Steve Dickson <steved@redhat.com>
777f42
777f42
diff --git a/support/junction/xml.c b/support/junction/xml.c
777f42
index 7005e95..813110b 100644
777f42
--- a/support/junction/xml.c
777f42
+++ b/support/junction/xml.c
777f42
@@ -327,7 +327,7 @@ junction_parse_xml_read(const char *pathname, int fd, const char *name,
777f42
 	if (retval != FEDFS_OK)
777f42
 		return retval;
777f42
 
777f42
-	xlog(D_CALL, "%s: XML document contained in junction:\n%ld.%s",
777f42
+	xlog(D_CALL, "%s: XML document contained in junction:\n%zu.%s",
777f42
 		__func__, len, (char *)buf);
777f42
 
777f42
 	retval = junction_parse_xml_buf(pathname, name, buf, len, doc);
777f42
diff --git a/tools/locktest/testlk.c b/tools/locktest/testlk.c
777f42
index b392f71..ea51f78 100644
777f42
--- a/tools/locktest/testlk.c
777f42
+++ b/tools/locktest/testlk.c
777f42
@@ -81,7 +81,7 @@ main(int argc, char **argv)
777f42
 		if (fl.l_type == F_UNLCK) {
777f42
 			printf("%s: no conflicting lock\n", fname);
777f42
 		} else {
777f42
-			printf("%s: conflicting lock by %d on (%ld;%ld)\n",
777f42
+			printf("%s: conflicting lock by %d on (%zd;%zd)\n",
777f42
 				fname, fl.l_pid, fl.l_start, fl.l_len);
777f42
 		}
777f42
 		return 0;