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
Unknown Object (File)
Tue, Oct 22, 4:59 PM
Unknown Object (File)
Sep 27 2024, 4:21 PM
Unknown Object (File)
Sep 27 2024, 5:14 AM
Unknown Object (File)
Sep 26 2024, 1:47 PM
Unknown Object (File)
Sep 25 2024, 1:53 PM
Unknown Object (File)
Sep 23 2024, 9:18 AM
Unknown Object (File)
Sep 21 2024, 8:10 PM
Unknown Object (File)
Sep 20 2024, 5:31 PM
Subscribers

Details

Summary

This fixes a -Wformat error reported by GCC 9.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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