diff options
-rw-r--r-- | drivers/firmware/efi/capsule-loader.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/drivers/firmware/efi/capsule-loader.c b/drivers/firmware/efi/capsule-loader.c index e456f4602df1..96688986da56 100644 --- a/drivers/firmware/efi/capsule-loader.c +++ b/drivers/firmware/efi/capsule-loader.c | |||
@@ -134,10 +134,16 @@ static ssize_t efi_capsule_submit_update(struct capsule_info *cap_info) | |||
134 | 134 | ||
135 | /* Indicate capsule binary uploading is done */ | 135 | /* Indicate capsule binary uploading is done */ |
136 | cap_info->index = NO_FURTHER_WRITE_ACTION; | 136 | cap_info->index = NO_FURTHER_WRITE_ACTION; |
137 | pr_info("Successfully upload capsule file with reboot type '%s'\n", | 137 | |
138 | !cap_info->reset_type ? "RESET_COLD" : | 138 | if (cap_info->header.flags & EFI_CAPSULE_PERSIST_ACROSS_RESET) { |
139 | cap_info->reset_type == 1 ? "RESET_WARM" : | 139 | pr_info("Successfully uploaded capsule file with reboot type '%s'\n", |
140 | "RESET_SHUTDOWN"); | 140 | !cap_info->reset_type ? "RESET_COLD" : |
141 | cap_info->reset_type == 1 ? "RESET_WARM" : | ||
142 | "RESET_SHUTDOWN"); | ||
143 | } else { | ||
144 | pr_info("Successfully processed capsule file\n"); | ||
145 | } | ||
146 | |||
141 | return 0; | 147 | return 0; |
142 | } | 148 | } |
143 | 149 | ||