Skip to content

Commit

Permalink
Update auth restart messages
Browse files Browse the repository at this point in the history
  • Loading branch information
vit9696 committed Jan 10, 2020
1 parent 29b9ef7 commit 566adc0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions VirtualSMC/kern_efiend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ bool EfiBackend::detectFirmwareBackend() {
infoBuf = storage.read(StatusKey, size, NVStorage::OptRaw);
// Do not care if the value is a little bigger.
if (infoBuf && size >= sizeof(StatusInfo)) {
DBGLOG("efend", "found proper status via normal nvram");
DBGLOG("efend", "found authenticated restart status via normal nvram");
info = reinterpret_cast<StatusInfo *>(infoBuf);
} else {
SYSLOG("efend", "failed to find valid status, VirtualSMC EFI module is broken");
SYSLOG("efend", "authenticated restart support is unavailable");
}

storage.deinit();
Expand All @@ -50,10 +50,10 @@ bool EfiBackend::detectFirmwareBackend() {

// Do not care if vsmc-key is a little bigger.
if (status == EFI_SUCCESS && size >= sizeof(StatusInfo)) {
DBGLOG("efend", "found proper status via efi nvram");
DBGLOG("efend", "found authenticated restart status via efi nvram");
info = reinterpret_cast<StatusInfo *>(infoBuf);
} else {
SYSLOG("efend", "failed to find valid status (%llX, %lld), VirtualSMC EFI module is broken", status, size);
SYSLOG("efend", "authenticated restart support is unavailable (%llX, %lld)", status, size);
}
} else {
SYSLOG("efend", "failed to allocate status tmp buffer");
Expand Down

0 comments on commit 566adc0

Please sign in to comment.