Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
  • Sign in / Register
  • ntpsec ntpsec
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 59
    • Issues 59
    • List
    • Boards
    • Service Desk
    • Milestones
    • Requirements
  • Merge requests 23
    • Merge requests 23
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • NTPsecNTPsec
  • ntpsecntpsec
  • Issues
  • #498
Closed
Open
Issue created Aug 19, 2018 by Matt Selsky@selskyOwner

Warnings regarding %m used in non-syslog functions on NetBSD 8

Example:

../../ntpd/ntp_io.c:1962:14: warning: %m is only allowed in syslog(3) like functions [-Wformat=]
              (unsigned)qos, socktoa(addr));
              ^

There are 146 of these warnings.

Some information I found about this:

  • https://mail-index.netbsd.org/tech-toolchain/2015/10/13/msg002670.html
  • https://mail-index.netbsd.org/tech-toolchain/2015/10/14/msg002673.html
  • https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67956
According to TOG (http://pubs.opengroup.org/onlinepubs/009695399/functions/fprintf.html), %m is not a legal formatting character for printf(3) like functions. Some implementations (glibc) accept this formatting character as an extension and expand it to the error string via strerror(3) that errno currently points to. Most other c library implementations do not expand %m.
  • https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67479
  • https://gcc.gnu.org/bugzilla/show_bug.cgi?id=15338
Edited Aug 19, 2018 by Matt Selsky
Assignee
Assign to
Time tracking