Page MenuHomeFreeBSD

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

Authored by jhb on Mon, Sep 13, 6:21 PM.

Details

Summary

This fixes a -Wformat error reported by GCC 9.

Diff Detail

Repository
R10 FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

jhb requested review of this revision.Mon, Sep 13, 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.Mon, Sep 13, 6:54 PM
jhb marked an inline comment as done.Wed, Sep 15, 3:40 PM