Changeset 3bacee1 in mainline for kernel/generic/src/console


Ignore:
Timestamp:
2018-04-12T16:27:17Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3cf22f9
Parents:
76d0981d
git-author:
Jiri Svoboda <jiri@…> (2018-04-11 19:25:33)
git-committer:
Jiri Svoboda <jiri@…> (2018-04-12 16:27:17)
Message:

Make ccheck-fix again and commit more good files.

Location:
kernel/generic/src/console
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/console/cmd.c

    r76d0981d r3bacee1  
    923923
    924924        printf("Up %" PRIun " days, %" PRIun " hours, %" PRIun " minutes, %" PRIun " seconds\n",
    925                 sec / 86400, (sec % 86400) / 3600, (sec % 3600) / 60, sec % 60);
     925            sec / 86400, (sec % 86400) / 3600, (sec % 3600) / 60, sec % 60);
    926926
    927927        return 1;
     
    10881088                    (void *) cmd_call2);
    10891089                printf("Calling f(%#" PRIxn ", %#" PRIxn "): %p: %s\n",
    1090                        arg1, arg2, (void *) symaddr, symbol);
     1090                    arg1, arg2, (void *) symaddr, symbol);
    10911091                printf("Result: %#" PRIxn "\n", fnc(arg1, arg2));
    10921092                interrupts_restore(ipl);
     
    11251125                    (void *) cmd_call3);
    11261126                printf("Calling f(%#" PRIxn ",%#" PRIxn ", %#" PRIxn "): %p: %s\n",
    1127                        arg1, arg2, arg3, (void *) symaddr, symbol);
     1127                    arg1, arg2, arg3, (void *) symaddr, symbol);
    11281128                printf("Result: %#" PRIxn "\n", fnc(arg1, arg2, arg3));
    11291129                interrupts_restore(ipl);
     
    11881188                pointer = true;
    11891189        } else if (((char *) argv->buffer)[0] >= '0' &&
    1190                    ((char *) argv->buffer)[0] <= '9') {
     1190            ((char *) argv->buffer)[0] <= '9') {
    11911191                uint64_t value;
    11921192                rc = str_uint64_t((char *) argv->buffer, NULL, 0, true, &value);
     
    12061206                if (pointer)
    12071207                        addr = *(uintptr_t *) addr;
    1208                 printf("Writing %#" PRIx32" -> %p\n", arg1, (void *) addr);
     1208                printf("Writing %#" PRIx32 " -> %p\n", arg1, (void *) addr);
    12091209                *(uint32_t *) addr = arg1;
    12101210        } else
  • kernel/generic/src/console/kconsole.c

    r76d0981d r3bacee1  
    8686LIST_INITIALIZE(cmd_list);      /**< Command list. */
    8787
    88 static wchar_t history[KCONSOLE_HISTORY][MAX_CMDLINE] = {};
     88static wchar_t history[KCONSOLE_HISTORY][MAX_CMDLINE] = { };
    8989static size_t history_pos = 0;
    9090
     
    166166const char *cmdtab_enum(const char *name, const char **h, void **ctx)
    167167{
    168         link_t **startpos = (link_t**) ctx;
     168        link_t **startpos = (link_t **) ctx;
    169169        size_t namelen = str_length(name);
    170170
     
    376376                                beg = position - 1;
    377377                                while ((beg > 0) && (!isspace(current[beg])))
    378                                     beg--;
     378                                        beg--;
    379379
    380380                                if (isspace(current[beg]))
Note: See TracChangeset for help on using the changeset viewer.