Changeset ef687799 in mainline


Ignore:
Timestamp:
2008-11-21T22:51:51Z (16 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ce4a3dae
Parents:
32e6c9c
Message:

Display hint on keyboard controls.

File:
1 edited

Legend:

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

    r32e6c9c ref687799  
    446446        thread_id = next_thread_id++;
    447447
    448         printf("Start tracing thread [%d] (hash 0x%lx)\n", thread_id, thread_hash);
     448        printf("Start tracing thread [%d] (hash 0x%lx).\n", thread_id, thread_hash);
    449449
    450450        while (!abort_trace) {
    451451
    452452                if (paused) {
    453                         printf("Waiting for resume\n");
     453                        printf("Press R to resume (and be patient).\n");
    454454                        while (paused) {
    455455                                usleep(1000000);
     
    485485                                break;
    486486                        case UDEBUG_EVENT_THREAD_E:
    487                                 printf("Thread 0x%lx exited\n", val0);
     487                                printf("Thread 0x%lx exited.\n", val0);
    488488                                abort_trace = 1;
    489489                                break;
    490490                        default:
    491                                 printf("Unknown event type %d\n", ev_type);
     491                                printf("Unknown event type %d.\n", ev_type);
    492492                                break;
    493493                        }
     
    496496        }
    497497
    498         printf("Finished tracing thread [%d]\n", thread_id);
     498        printf("Finished tracing thread [%d].\n", thread_id);
    499499        return 0;
    500500}
     
    708708                case 'p': dm = dm | DM_SYSTEM | DM_USER; break;
    709709                default:
    710                         printf("Unexpected event type '%c'\n", *c);
     710                        printf("Unexpected event type '%c'.\n", *c);
    711711                        exit(1);
    712712                }
     
    783783
    784784        printf("System Call / IPC Tracer\n");
     785        printf("Controls: Q - Quit, P - Pause, R - Resume\n");
    785786
    786787        display_mask = DM_THREAD | DM_SYSTEM | DM_USER;
     
    793794        rc = connect_task(task_id);
    794795        if (rc < 0) {
    795                 printf("Failed connecting to task %lld\n", task_id);
     796                printf("Failed connecting to task %lld.\n", task_id);
    796797                return 1;
    797798        }
    798799
    799         printf("Connected to task %lld\n", task_id);
     800        printf("Connected to task %lld.\n", task_id);
    800801
    801802        if (task_ldr != NULL) {
Note: See TracChangeset for help on using the changeset viewer.