diff options
author | Eric Richter <erichte@linux.ibm.com> | 2019-12-03 18:03:49 -0600 |
---|---|---|
committer | Oliver O'Halloran <oohall@gmail.com> | 2019-12-05 17:29:56 +1100 |
commit | 0dfaf110431323c65cf85167f6532c705cd46b2b (patch) | |
tree | c3f46ff667abd4a8e11e96ac0ef1afe9cceaa7f7 /libstb | |
parent | 6cdbf1aded81b54c5f08194e09506ecf32686baa (diff) | |
download | skiboot-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.c | 6 |
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; } |