aboutsummaryrefslogtreecommitdiff
path: root/libstb
diff options
context:
space:
mode:
authorEric Richter <erichte@linux.ibm.com>2019-12-03 18:03:49 -0600
committerOliver O'Halloran <oohall@gmail.com>2019-12-05 17:29:56 +1100
commit0dfaf110431323c65cf85167f6532c705cd46b2b (patch)
treec3f46ff667abd4a8e11e96ac0ef1afe9cceaa7f7 /libstb
parent6cdbf1aded81b54c5f08194e09506ecf32686baa (diff)
downloadskiboot-0dfaf110431323c65cf85167f6532c705cd46b2b.zip
skiboot-0dfaf110431323c65cf85167f6532c705cd46b2b.tar.gz
skiboot-0dfaf110431323c65cf85167f6532c705cd46b2b.tar.bz2
secvar_main: increase verbosity of the main entrypoint
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>
Diffstat (limited to 'libstb')
-rw-r--r--libstb/secvar/secvar_main.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libstb/secvar/secvar_main.c b/libstb/secvar/secvar_main.c
index fc5527a..27e36ad 100644
--- a/libstb/secvar/secvar_main.c
+++ b/libstb/secvar/secvar_main.c
@@ -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;
@@ -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;
}