Changeset f126c87 in mainline for kernel/generic/src/console/kconsole.c
- Timestamp:
- 2016-09-01T16:46:27Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2a2fbc8
- Parents:
- 9befb0d (diff), bdfdc51c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/console/kconsole.c
r9befb0d rf126c87 166 166 const char *cmdtab_enum(const char *name, const char **h, void **ctx) 167 167 { 168 link_t **startpos = (link_t**) ctx;168 link_t **startpos = (link_t**) ctx; 169 169 size_t namelen = str_length(name); 170 170 … … 183 183 if (str_lcmp(curname, name, namelen) == 0) { 184 184 *startpos = (*startpos)->next; 185 if (h) {185 if (h) 186 186 *h = hlp->description; 187 }187 188 188 spinlock_unlock(&cmd_lock); 189 189 return (curname + str_lsize(curname, namelen)); … … 249 249 250 250 if (continue_showing_hints) { 251 252 251 if (help) 253 252 printf("%s%s (%s)\n", name, hint, help); … … 292 291 while (isspace(cmdline[start])) 293 292 start++; 293 294 294 end = start + 1; 295 295 296 while (!isspace(cmdline[end])) 296 297 end++; … … 374 375 for (beg = position - 1; 375 376 (beg > 0) && (!isspace(current[beg])); 376 beg--) { 377 ; 378 } 377 beg--); 379 378 380 379 if (isspace(current[beg])) … … 395 394 sp = false; 396 395 } 396 397 397 if (narg && isspace(current[0])) 398 398 narg--; 399 399 400 400 int found; 401 401 if (narg == 0) {
Note:
See TracChangeset
for help on using the changeset viewer.