diff options
Diffstat (limited to 'firmware')
| -rw-r--r-- | firmware/libc/sscanf.c | 17 | ||||
| -rw-r--r-- | firmware/target/hosted/sdl/thread-sdl.c | 4 |
2 files changed, 3 insertions, 18 deletions
diff --git a/firmware/libc/sscanf.c b/firmware/libc/sscanf.c index 5fbe81f..5bb08d8 100644 --- a/firmware/libc/sscanf.c +++ b/firmware/libc/sscanf.c @@ -1,22 +1,7 @@ #include <stdarg.h> #include <string.h> #include <stdbool.h> - -static inline bool isspace(char c) -{ - return (c == ' ') || (c == '\t') || (c == '\n'); -} - -static inline bool isdigit(char c) -{ - return (c >= '0') && (c <= '9'); -} - -static inline bool isxdigit(char c) -{ - return ((c >= '0') && (c <= '9')) - || ((c >= 'a') && (c <= 'f')) || ((c >= 'A') && (c <= 'F')); -} +#include <ctype.h> static int parse_dec(int (*peek)(void *userp), void (*pop)(void *userp), diff --git a/firmware/target/hosted/sdl/thread-sdl.c b/firmware/target/hosted/sdl/thread-sdl.c index 1a68391..83f1d19 100644 --- a/firmware/target/hosted/sdl/thread-sdl.c +++ b/firmware/target/hosted/sdl/thread-sdl.c @@ -632,8 +632,8 @@ void thread_exit(void) remove_thread(THREAD_ID_CURRENT); /* This should never and must never be reached - if it is, the * state is corrupted */ - THREAD_PANICF("thread_exit->K:*R", - thread_id_entry(THREAD_ID_CURRENT)); + THREAD_PANICF("thread_exit->K:*R (ID: %d)", + thread_id_entry(THREAD_ID_CURRENT)->id); while (1); } |