diff options
author | Benji Dial <benji6283@gmail.com> | 2020-09-13 22:06:40 -0400 |
---|---|---|
committer | Benji Dial <benji6283@gmail.com> | 2020-09-13 22:06:40 -0400 |
commit | 44d29a33df81ac07163d5146a9e43a0c4fb80af0 (patch) | |
tree | 94d4fb506a80d73cb53dc9ea66dfc952d7a9432a /src/user/knob/user.c | |
parent | 143156f63e2448733f1a35a74e629fe0ae9bb567 (diff) | |
download | portland-os-44d29a33df81ac07163d5146a9e43a0c4fb80af0.tar.gz |
new shell
Diffstat (limited to 'src/user/knob/user.c')
-rw-r--r-- | src/user/knob/user.c | 17 |
1 files changed, 0 insertions, 17 deletions
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]; |