summaryrefslogtreecommitdiffstats
path: root/fs/efi.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/efi.c')
-rw-r--r--fs/efi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/efi.c b/fs/efi.c
index 0f74cdafff..26f2f669bb 100644
--- a/fs/efi.c
+++ b/fs/efi.c
@@ -30,6 +30,7 @@
#include <fcntl.h>
#include <wchar.h>
#include <efi.h>
+#include <libfile.h>
#include <mach/efi.h>
#include <mach/efi-device.h>
@@ -530,8 +531,8 @@ int efi_fs_probe(struct efi_device *efidev)
if (efi_loaded_image && efidev->protocol == volume)
path = xstrdup("/boot");
else
- path = asprintf("/efi%d", index);
- device = asprintf("%s", dev_name(&efidev->dev));
+ path = basprintf("/efi%d", index);
+ device = basprintf("%s", dev_name(&efidev->dev));
ret = make_directory(path);
if (ret)