svn commit: r308195 - head/sys/boot/efi/libefi
Toomas Soome
tsoome at FreeBSD.org
Wed Nov 2 06:37:37 UTC 2016
Author: tsoome
Date: Wed Nov 2 06:37:35 2016
New Revision: 308195
URL: https://svnweb.freebsd.org/changeset/base/308195
Log:
efinet_dev_print should honor verbose option.
lsdev should display detailed information about net devices only with -v
switch. This will make EFI and BIOS version of the loader to have the
same behavior.
Reviewed by: bapt, imp
Approved by: imp (mentor)
Differential Revision: https://reviews.freebsd.org/D8415
Modified:
head/sys/boot/efi/libefi/efinet.c
Modified: head/sys/boot/efi/libefi/efinet.c
==============================================================================
--- head/sys/boot/efi/libefi/efinet.c Wed Nov 2 05:41:23 2016 (r308194)
+++ head/sys/boot/efi/libefi/efinet.c Wed Nov 2 06:37:35 2016 (r308195)
@@ -357,10 +357,12 @@ efinet_dev_print(int verbose)
for (unit = 0, h = efi_find_handle(&efinet_dev, 0);
h != NULL; h = efi_find_handle(&efinet_dev, ++unit)) {
printf(" %s%d:", efinet_dev.dv_name, unit);
- text = efi_devpath_name(efi_lookup_devpath(h));
- if (text != NULL) {
- printf(" %S", text);
- efi_free_devpath_name(text);
+ if (verbose) {
+ text = efi_devpath_name(efi_lookup_devpath(h));
+ if (text != NULL) {
+ printf(" %S", text);
+ efi_free_devpath_name(text);
+ }
}
if (pager_output("\n"))
break;
More information about the svn-src-all
mailing list