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 - junction: Fixed debug statement to compile with -Werror=format=2 flag
Summary: junction: Fixed debug statement to compile with -Werror=format=2 flag
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: nfs-utils
Version: 8.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.3
Assignee: Steve Dickson
QA Contact: Yongcheng Yang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-05 17:41 UTC by Steve Dickson
Modified: 2020-11-04 01:59 UTC (History)
2 users (show)

Fixed In Version: nfs-utils-2.3.3-32.el8
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-04 01:57:31 UTC
Type: Bug
Target Upstream Version:
Embargoed:
pm-rhel: mirror+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2020:4530 0 None None None 2020-11-04 01:57:44 UTC

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


Note You need to log in before you can comment on or make changes to this bug.