Lines Matching refs:s
124 Debug_StrToInt(const char *s)
130 if (s[0] == '0' && s[1] == 'x')
136 while (s[i] != '\0') {
137 if (s[i] >= '0' && s[i] <= '9') {
138 val = val * base + (uint64_t)(s[i] - '0');
139 } else if (s[i] >= 'a' && s[i] <= 'f') {
142 val = val * base + (uint64_t)(s[i] - 'a' + 10);
143 } else if (s[i] >= 'A' && s[i] <= 'F') {
146 val = val * base + (uint64_t)(s[i] - 'A' + 10);
157 Debug_SymbolToInt(const char *s)
159 if (*s >= '0' || *s <= '9')
160 return Debug_StrToInt(s);
162 kprintf("Unknown symbol '%s'\n");
166 #define PHELP(_cmd, _msg) kprintf("%-16s %s\n", _cmd, _msg)
182 kprintf("%-16s %s\n", cmds[i].name, cmds[i].description);
197 kprintf("%s ", argv[i]);
301 kprintf("Unknown command '%s'\n", argv[0]);