Changeset 1433ecda in mainline for uspace/app/trace


Ignore:
Timestamp:
2018-04-04T15:42:37Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2c4e1cc
Parents:
47b2d7e3
Message:

Fix cstyle: make ccheck-fix and commit only files where all the changes are good.

Location:
uspace/app/trace
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/trace/ipcp.c

    r47b2d7e3 r1433ecda  
    107107        // now handled using capabilities
    108108        if (CAP_HANDLE_RAW(phone) < 0 || CAP_HANDLE_RAW(phone) >= MAX_PHONE)
    109             return;
     109                return;
    110110        connections[CAP_HANDLE_RAW(phone)].server = server;
    111111        connections[CAP_HANDLE_RAW(phone)].proto = proto;
     
    218218                        putchar('(');
    219219                        for (i = 1; i <= oper->argc; ++i) {
    220                                 if (i > 1) printf(", ");
     220                                if (i > 1)
     221                                        printf(", ");
    221222                                val_print(args[i], oper->arg_type[i - 1]);
    222223                        }
     
    315316                if ((display_mask & DM_SYSTEM) != 0) {
    316317                        printf("Registering connection (phone %p, protocol: %s)\n", cphone,
    317                     proto->name);
     318                            proto->name);
    318319                }
    319320
  • uspace/app/trace/proto.c

    r47b2d7e3 r1433ecda  
    136136{
    137137        ht_link_t *item = hash_table_find(&srv_proto, &srv);
    138         if (item == NULL) return NULL;
     138        if (item == NULL)
     139                return NULL;
    139140
    140141        srv_proto_t *sp = hash_table_get_inst(item, srv_proto_t, link);
     
    179180{
    180181        ht_link_t *item = hash_table_find(&proto->method_oper, &method);
    181         if (item == NULL) return NULL;
     182        if (item == NULL)
     183                return NULL;
    182184
    183185        method_oper_t *mo = hash_table_get_inst(item, method_oper_t, link);
  • uspace/app/trace/trace.c

    r47b2d7e3 r1433ecda  
    185185
    186186        rc = udebug_thread_read(sess, thread_hash_buf,
    187                 THBUF_SIZE*sizeof(unsigned), &tb_copied, &tb_needed);
     187            THBUF_SIZE * sizeof(unsigned), &tb_copied, &tb_needed);
    188188        if (rc != EOK) {
    189189                printf("udebug_thread_read() -> %s\n", str_error_name(rc));
     
    246246                } else {
    247247                        switch (sval) {
    248                         case '\a': printf("'\\a'"); break;
    249                         case '\b': printf("'\\b'"); break;
    250                         case '\n': printf("'\\n'"); break;
    251                         case '\r': printf("'\\r'"); break;
    252                         case '\t': printf("'\\t'"); break;
    253                         case '\\': printf("'\\\\'"); break;
    254                         default: printf("'\\x%02" PRIxn "'", val); break;
     248                        case '\a':
     249                                printf("'\\a'");
     250                                break;
     251                        case '\b':
     252                                printf("'\\b'");
     253                                break;
     254                        case '\n':
     255                                printf("'\\n'");
     256                                break;
     257                        case '\r':
     258                                printf("'\\r'");
     259                                break;
     260                        case '\t':
     261                                printf("'\\t'");
     262                                break;
     263                        case '\\':
     264                                printf("'\\\\'");
     265                                break;
     266                        default:
     267                                printf("'\\x%02" PRIxn "'", val);
     268                                break;
    255269                        }
    256270                }
     
    272286
    273287        putchar('(');
    274         if (n > 0) printf("%" PRIun, sc_args[0]);
     288        if (n > 0)
     289                printf("%" PRIun, sc_args[0]);
    275290        for (i = 1; i < n; i++) {
    276291                printf(", %" PRIun, sc_args[i]);
     
    320335        errno_t rc;
    321336
    322         if (sc_rc == 0) return;
     337        if (sc_rc == 0)
     338                return;
    323339
    324340        memset(&call, 0, sizeof(call));
     
    348364                        printf("%s", syscall_desc[sc_id].name);
    349365                        print_sc_args(sc_args, syscall_desc[sc_id].n_args);
    350                 }
    351                 else {
     366                } else {
    352367                        printf("unknown_syscall<%d>", sc_id);
    353368                        print_sc_args(sc_args, 6);
Note: See TracChangeset for help on using the changeset viewer.