From 44d29a33df81ac07163d5146a9e43a0c4fb80af0 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Sun, 13 Sep 2020 22:06:40 -0400 Subject: new shell --- src/user/knob/user.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'src/user/knob/user.c') diff --git a/src/user/knob/user.c b/src/user/knob/user.c index c84977c..b642f79 100644 --- a/src/user/knob/user.c +++ b/src/user/knob/user.c @@ -134,23 +134,6 @@ void tell_user_sz(const char *sz) { _log_string(sz); } -void tell_user_n(uint32_t n) { - char buf[11]; - char *buf_ptr = buf; - bool zero_yet = false; - for (uint32_t d = 1000000000U; d; d /= 10) { - uint8_t v = (n / d ) % 10; - if (v || zero_yet) { - zero_yet = true; - *buf_ptr++ = v | '0'; - } - } - if (buf_ptr == buf) - *buf_ptr++ = '0'; - *buf_ptr = '\0'; - tell_user_sz(buf); -} - //return value and max_length don't include null terminator uint32_t ask_user_line_sz(char *sz, uint32_t max_length) { char log_buf[2]; -- cgit v1.2.3