Fix a cluster of bugs in list EFI environment variables:
authorimp <imp@FreeBSD.org>
Fri, 30 Sep 2016 15:41:12 +0000 (15:41 +0000)
committerimp <imp@FreeBSD.org>
Fri, 30 Sep 2016 15:41:12 +0000 (15:41 +0000)
commit7cda556b9280541c7fa2c6a973882e1bb85bdcdd
tree0464ef7b09efea66e4b64266b459941d08949d1a
parent622458f472b2b64d2715c9bf7c6e03f9681c5c9f
Fix a cluster of bugs in list EFI environment variables:
1. Size returned for variable name is in bytes, not CHAR16 (the
   UEFI standard is unclear on this, where it is clear on the size of
   the variable).
2. Dynamically allocate the buffers so we can grow them if someone
   defines a super-long variable name.

These two fixes allow me to examine all the variables in my BIOS and
also removes the repeated printing of variables.
sys/boot/efi/loader/main.c