summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorIlya Smirnov <ismirno@us.ibm.com>2019-01-14 08:40:19 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2019-01-16 14:42:09 -0600
commit39295f752d61cfe4c988dc3e483ab7e8741630b6 (patch)
tree8aa530db6f24a3ea1ecbf5a4eed48ff2cfc12545 /src/lib
parentafdc9cd94432c69138a41ece8afa549f36229564 (diff)
downloadtalos-hostboot-39295f752d61cfe4c988dc3e483ab7e8741630b6.tar.gz
talos-hostboot-39295f752d61cfe4c988dc3e483ab7e8741630b6.zip
Follow-up Changes on SMF NVRAM End-To-End
Some minor changes to SMF NVRAM end-to-end commit that were requested in review but didn't make it into the original commit. Change-Id: I2eef8ef236dd67e6dd14568a270b6f77b3741c5b Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/70445 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Reviewed-by: Nicholas E. Bofferding <bofferdn@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/stdlib.C4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/stdlib.C b/src/lib/stdlib.C
index 2688959bd..21f45fffc 100644
--- a/src/lib/stdlib.C
+++ b/src/lib/stdlib.C
@@ -29,6 +29,7 @@
#include <kernel/pagemgr.H>
#include <kernel/console.H>
#include <config.h>
+#include <assert.h>
#ifdef HOSTBOOT_MEMORY_LEAKS
#include <arch/ppc.H>
@@ -165,6 +166,9 @@ uint64_t strtoul(const char *nptr, char **endptr, int base)
{
uint64_t l_data = 0;
size_t i = 0;
+
+ crit_assert(base == 16);
+
while( nptr[i] != '\0' )
{
uint64_t l_nib = 0;
OpenPOWER on IntegriCloud