efi: Drop EFI_CALL() from efidebug command
The intend of this macro is to debug calls from an app. But the efidebug command is not an app, so it really doesn't make a lot of sense to call via that macro. Remove EFI_CALL() from do_efi_show_handles() so that the app can use this code. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
@@ -474,8 +474,7 @@ static int do_efi_show_handles(struct cmd_tbl *cmdtp, int flag,
|
||||
if (app_not_supported("show_handles"))
|
||||
return CMD_RET_FAILURE;
|
||||
|
||||
ret = EFI_CALL(efi_locate_handle_buffer(ALL_HANDLES, NULL, NULL,
|
||||
&num, &handles));
|
||||
ret = efi_locate_handle_buffer(ALL_HANDLES, NULL, NULL, &num, &handles);
|
||||
if (ret != EFI_SUCCESS)
|
||||
return CMD_RET_FAILURE;
|
||||
|
||||
@@ -494,8 +493,7 @@ static int do_efi_show_handles(struct cmd_tbl *cmdtp, int flag,
|
||||
&handler);
|
||||
if (ret == EFI_SUCCESS)
|
||||
printf(" %pD\n", handler->protocol_interface);
|
||||
ret = EFI_CALL(BS->protocols_per_handle(handles[i], &guid,
|
||||
&count));
|
||||
ret = BS->protocols_per_handle(handles[i], &guid, &count);
|
||||
/* Print other protocols */
|
||||
for (j = 0; j < count; j++) {
|
||||
if (guidcmp(guid[j], &efi_guid_device_path))
|
||||
|
||||
Reference in New Issue
Block a user