9os

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 4711a531a707fede42ee79c6915b84ea74b24de2
parent 8427668075e839bcbec7e2518668703b8e69cbb4
Author: Dimitris Papastamos <dimitris.papastamos@arm.com>
Date:   Wed,  7 Nov 2018 11:42:58 +0000

[debuglang] Rename base_read to estrtoull

base_read is basically strtoull, prefix the name with 'e' which is a
common convention to show that errors are handled internally and not
by the caller.

Change-Id: I2d68455b3ea900a3da881d512beaeb791875125a
Signed-off-by: Dimitris Papastamos <dimitris.papastamos@arm.com>

Diffstat:
Msrc/debuglang/debuglang.c | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/debuglang/debuglang.c b/src/debuglang/debuglang.c @@ -78,7 +78,7 @@ print_tf(struct trapframe *fp) * 10, unless the string begins with "0x" or "0b" */ static unsigned long long -base_read(char *str, int base) +estrtoull(char *str, int base) { unsigned long long val; char *endptr; @@ -146,10 +146,10 @@ do_set(char **argv, int argc, struct trapframe *fp) base = 0; switch (argc) { case 4: - base = base_read(argv[3], 10); + base = estrtoull(argv[3], 10); /* fallthrough */ case 3: - setval = base_read(argv[2], base); + setval = estrtoull(argv[2], base); break; default: error("Invalid number of parameters for set"); @@ -218,11 +218,11 @@ do_rmc(char **argv, int argc, struct trapframe *fp) base = 0; switch (argc) { case 4: - base = base_read(argv[3], 10); + base = estrtoull(argv[3], 10); /* fallthrough */ case 3: - class = base_read(argv[1], base); - func = base_read(argv[2], base); + class = estrtoull(argv[1], base); + func = estrtoull(argv[2], base); break; case 2: rmudesc = get_rmudesc(argv[1]);