Changeset 1433ecda in mainline for uspace/app/trace
- Timestamp:
- 2018-04-04T15:42:37Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- Location:
- uspace/app/trace
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/trace/ipcp.c
r47b2d7e3 r1433ecda 107 107 // now handled using capabilities 108 108 if (CAP_HANDLE_RAW(phone) < 0 || CAP_HANDLE_RAW(phone) >= MAX_PHONE) 109 return;109 return; 110 110 connections[CAP_HANDLE_RAW(phone)].server = server; 111 111 connections[CAP_HANDLE_RAW(phone)].proto = proto; … … 218 218 putchar('('); 219 219 for (i = 1; i <= oper->argc; ++i) { 220 if (i > 1) printf(", "); 220 if (i > 1) 221 printf(", "); 221 222 val_print(args[i], oper->arg_type[i - 1]); 222 223 } … … 315 316 if ((display_mask & DM_SYSTEM) != 0) { 316 317 printf("Registering connection (phone %p, protocol: %s)\n", cphone, 317 proto->name);318 proto->name); 318 319 } 319 320 -
uspace/app/trace/proto.c
r47b2d7e3 r1433ecda 136 136 { 137 137 ht_link_t *item = hash_table_find(&srv_proto, &srv); 138 if (item == NULL) return NULL; 138 if (item == NULL) 139 return NULL; 139 140 140 141 srv_proto_t *sp = hash_table_get_inst(item, srv_proto_t, link); … … 179 180 { 180 181 ht_link_t *item = hash_table_find(&proto->method_oper, &method); 181 if (item == NULL) return NULL; 182 if (item == NULL) 183 return NULL; 182 184 183 185 method_oper_t *mo = hash_table_get_inst(item, method_oper_t, link); -
uspace/app/trace/trace.c
r47b2d7e3 r1433ecda 185 185 186 186 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); 188 188 if (rc != EOK) { 189 189 printf("udebug_thread_read() -> %s\n", str_error_name(rc)); … … 246 246 } else { 247 247 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; 255 269 } 256 270 } … … 272 286 273 287 putchar('('); 274 if (n > 0) printf("%" PRIun, sc_args[0]); 288 if (n > 0) 289 printf("%" PRIun, sc_args[0]); 275 290 for (i = 1; i < n; i++) { 276 291 printf(", %" PRIun, sc_args[i]); … … 320 335 errno_t rc; 321 336 322 if (sc_rc == 0) return; 337 if (sc_rc == 0) 338 return; 323 339 324 340 memset(&call, 0, sizeof(call)); … … 348 364 printf("%s", syscall_desc[sc_id].name); 349 365 print_sc_args(sc_args, syscall_desc[sc_id].n_args); 350 } 351 else { 366 } else { 352 367 printf("unknown_syscall<%d>", sc_id); 353 368 print_sc_args(sc_args, 6);
Note:
See TracChangeset
for help on using the changeset viewer.
