Page MenuHomeFreeBSD

efitable: Don't pass NULL as a format string to xo_err().
ClosedPublic

Authored by jhb on Sep 13 2021, 6:21 PM.
Tags
None
Referenced Files
F172517392: D31939.id95207.diff
Sat, Sep 19, 12:04 AM
F172513122: D31939.id95065.diff
Fri, Sep 18, 11:20 PM
F172511999: D31939.diff
Fri, Sep 18, 11:10 PM
Unknown Object (File)
Sat, Sep 12, 2:45 AM
Unknown Object (File)
Sun, Sep 6, 9:24 AM
Unknown Object (File)
Aug 14 2026, 9:15 PM
Unknown Object (File)
Aug 13 2026, 9:10 PM
Unknown Object (File)
Aug 13 2026, 8:01 PM
Subscribers

Details

Summary

This fixes a -Wformat error reported by GCC 9.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 41493
Build 38382: arc lint + arc unit

Event Timeline

jhb requested review of this revision.Sep 13 2021, 6:21 PM
kib added inline comments.
usr.sbin/efitable/efitable.c
149

I suggest to add something like '(len == 0)' into the string, to distinguish two calls.

This revision is now accepted and ready to land.Sep 13 2021, 6:54 PM
jhb marked an inline comment as done.Sep 15 2021, 3:40 PM