mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 09:10:28 +00:00
efitable: Don't pass NULL as a format string to xo_err().
This fixes a -Wformat error reported by GCC 9. Reviewed by: kib Differential Revision: https://reviews.freebsd.org/D31939
This commit is contained in:
parent
4c9cb057bd
commit
b14cd3a833
|
@ -146,13 +146,13 @@ main(int argc, char **argv)
|
|||
|
||||
table.uuid = efi_table_ops[efi_idx].uuid;
|
||||
if (ioctl(efi_fd, EFIIOC_GET_TABLE, &table) == -1)
|
||||
xo_err(EX_OSERR, NULL);
|
||||
xo_err(EX_OSERR, "EFIIOC_GET_TABLE (len == 0)");
|
||||
|
||||
table.buf = malloc(table.table_len);
|
||||
table.buf_len = table.table_len;
|
||||
|
||||
if (ioctl(efi_fd, EFIIOC_GET_TABLE, &table) == -1)
|
||||
xo_err(EX_OSERR, NULL);
|
||||
xo_err(EX_OSERR, "EFIIOC_GET_TABLE");
|
||||
|
||||
efi_table_ops[efi_idx].parse(table.buf);
|
||||
close(efi_fd);
|
||||
|
|
Loading…
Reference in a new issue