Remove useless libefi warnings
These two warnings in libefi serve no real purpose. When running without DEBUG they are already supressed, and even when DEBUG is enabled all they indicate is the device doesn't already have an EFI label. For a Linux machine this is probably the common case.
This commit is contained in:
parent
8926ab7a50
commit
b3b4f547f9
|
@ -269,19 +269,12 @@ efi_alloc_and_init(int fd, uint32_t nparts, struct dk_gpt **vtoc)
|
||||||
struct uuid uuid;
|
struct uuid uuid;
|
||||||
struct dk_cinfo dki_info;
|
struct dk_cinfo dki_info;
|
||||||
|
|
||||||
if (read_disk_info(fd, &capacity, &lbsize) != 0) {
|
if (read_disk_info(fd, &capacity, &lbsize) != 0)
|
||||||
if (efi_debug)
|
|
||||||
(void) fprintf(stderr,
|
|
||||||
"couldn't read disk information\n");
|
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
|
||||||
#if defined(__linux__)
|
#if defined(__linux__)
|
||||||
if (efi_get_info(fd, &dki_info) != 0) {
|
if (efi_get_info(fd, &dki_info) != 0)
|
||||||
if (efi_debug)
|
|
||||||
(void) fprintf(stderr,
|
|
||||||
"couldn't read disk information\n");
|
|
||||||
return (-1);
|
return (-1);
|
||||||
}
|
|
||||||
|
|
||||||
if (dki_info.dki_partition != 0)
|
if (dki_info.dki_partition != 0)
|
||||||
return (-1);
|
return (-1);
|
||||||
|
|
Loading…
Reference in New Issue