efi_driver: simplify error message
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 6 Jan 2019 16:12:43 +0000 (17:12 +0100)
committerAlexander Graf <agraf@suse.de>
Wed, 13 Feb 2019 08:40:05 +0000 (09:40 +0100)
Stating the function module is sufficient. We don't need file and line
number. Anyway the format code for the line number was incorrect (should
be %d).

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
lib/efi_driver/efi_uclass.c

index bb86ffd399c3644ca14b9801368a978b611d8c6d..7cdf81f40c1255439ca2164be4d0db6735d0be38 100644 (file)
@@ -233,8 +233,7 @@ static efi_status_t EFIAPI efi_uc_stop(
        }
        ret = EFI_CALL(systab.boottime->free_pool(entry_buffer));
        if (ret != EFI_SUCCESS)
-               printf("%s(%u) %s: ERROR: Cannot free pool\n",
-                      __FILE__, __LINE__, __func__);
+               printf("%s: ERROR: Cannot free pool\n", __func__);
 
        /* Detach driver from controller */
        ret = EFI_CALL(systab.boottime->close_protocol(