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