Skip to content

Commit

Permalink
secvar_main: increase verbosity of the main entrypoint
Browse files Browse the repository at this point in the history
This patch simply adds unconditional log entries at the beginning and
end of secvar initialization, to clarify whether secvar support is
enabled and functional.

Signed-off-by: Eric Richter <erichte@linux.ibm.com>
[oliver: s/printf/prerror/]
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
  • Loading branch information
erichte-ibm authored and oohal committed Dec 5, 2019
1 parent 6cdbf1a commit 0dfaf11
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libstb/secvar/secvar_main.c
Expand Up @@ -27,6 +27,8 @@ int secvar_main(struct secvar_storage_driver storage_driver,
{
int rc = OPAL_UNSUPPORTED;

prlog(PR_INFO, "Secure variables are supported, initializing secvar\n");

secvar_storage = storage_driver;
secvar_backend = backend_driver;

Expand Down Expand Up @@ -78,10 +80,12 @@ int secvar_main(struct secvar_storage_driver storage_driver,
if (rc)
goto out;

prlog(PR_INFO, "secvar initialized successfully\n");

return OPAL_SUCCESS;
fail:
secvar_set_status("fail");
out:
printf("Secure Variables Status %04x\n", rc);
prerror("secvar failed to initialize, rc = %04x\n", rc);
return rc;
}

0 comments on commit 0dfaf11

Please sign in to comment.