Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1831829

Summary: junction: Fixed debug statement to compile with -Werror=format=2 flag
Product: Red Hat Enterprise Linux 8 Reporter: Steve Dickson <steved>
Component: nfs-utilsAssignee: Steve Dickson <steved>
Status: CLOSED ERRATA QA Contact: Yongcheng Yang <yoyang>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 8.3CC: xzhou, yoyang
Target Milestone: rcKeywords: Patch
Target Release: 8.3Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: nfs-utils-2.3.3-32.el8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-04 01:57:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Steve Dickson 2020-05-05 17:41:18 UTC
Description of problem:

xml.c: In function 'junction_parse_xml_read':
xml.c:330:59: error: field precision specifier '.*' expects argument of type 'int', but argument 4 has type 'size_t' {aka 'long unsigned int'} [-Werror=format=]
  xlog(D_CALL, "%s: XML document contained in junction:\n%.*s",
                                                         ~~^~
   __func__, len, buf);
             ~~~                                            
xml.c:330:60: error: format '%s' expects argument of type 'char *', but argument 5 has type 'void *' [-Werror=format=]
  xlog(D_CALL, "%s: XML document contained in junction:\n%.*s",
                                                         ~~~^
                                                         %.*p
   __func__, len, buf);


Version-Release number of selected component (if applicable):


How reproducible:
100%

Additional info:

commit efefa7845601f551820fa17cb0808dbb3c3cc3dd
Author: Steve Dickson <steved>
Date:   Wed Nov 13 09:32:00 2019 -0500

    junction: Fixed debug statement to compile with -Werror=format=2 flag
    
    Signed-off-by: Steve Dickson <steved>

Comment 3 Yongcheng Yang 2020-09-09 07:10:02 UTC
Have confirmed this patch (along with the one in comment #0) has been applied now.

commit f7c0c0dc4a02d87965d3fbbab69786ca07fdecea                                                                                                          
Author: Guillaume Rousse <guillomovitch>
Date:   Fri Nov 22 10:20:03 2019 -0500

    fix compilation with  -Werror=format on i586
    
    Signed-off-by: Steve Dickson <steved>


Don't have the specific machine so just verified this as SanityOnly now.

Comment 6 errata-xmlrpc 2020-11-04 01:57:31 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (nfs-utils bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2020:4530