1 | |
2 | |
3 | |
4 | |
5 | #ifdef HAVE_CONFIG_H1 |
6 | #include "config.h" |
7 | #endif |
8 | |
9 | #include <rtems.h> |
10 | #include <rtems/monitor.h> |
11 | |
12 | #include <stdio.h> |
13 | |
14 | void |
15 | rtems_monitor_queue_canonical( |
16 | rtems_monitor_queue_t *canonical_queue, |
17 | void *queue_void |
18 | ) |
19 | { |
20 | Message_queue_Control *rtems_queue = (Message_queue_Control *) queue_void; |
21 | |
22 | canonical_queue->attributes = rtems_queue->attribute_set; |
23 | canonical_queue->maximum_message_size = rtems_queue->message_queue.maximum_message_size; |
24 | canonical_queue->maximum_pending_messages = rtems_queue->message_queue.maximum_pending_messages; |
25 | canonical_queue->number_of_pending_messages = rtems_queue->message_queue.number_of_pending_messages; |
26 | } |
27 | |
28 | void |
29 | rtems_monitor_queue_dump_header( |
30 | bool_Bool verbose __attribute__((unused)) |
31 | ) |
32 | { |
33 | fprintf(stdoutstdout,"\ |
34 | ID NAME ATTRIBUTES PEND MAXPEND MAXSIZE\n"); |
35 | |
36 | |
37 | rtems_monitor_separator(); |
38 | } |
39 | |
40 | |
41 | |
42 | |
43 | |
44 | |
45 | |
46 | |
47 | void |
48 | rtems_monitor_queue_dump( |
49 | rtems_monitor_queue_t *monitor_queue, |
50 | bool_Bool verbose __attribute__((unused)) |
51 | ) |
52 | { |
53 | uint32_t length = 0; |
54 | |
55 | length += rtems_monitor_dump_id(monitor_queue->id); |
56 | length += rtems_monitor_pad(11, length); |
57 | length += rtems_monitor_dump_name(monitor_queue->id); |
58 | length += rtems_monitor_pad(19, length); |
59 | length += rtems_monitor_dump_attributes(monitor_queue->attributes); |
60 | length += rtems_monitor_pad(31, length); |
61 | length += rtems_monitor_dump_decimal(monitor_queue->number_of_pending_messages); |
62 | length += rtems_monitor_pad(39, length); |
63 | length += rtems_monitor_dump_decimal(monitor_queue->maximum_pending_messages); |
64 | length += rtems_monitor_pad(48, length); |
65 | length += rtems_monitor_dump_decimal(monitor_queue->maximum_message_size); |
| Value stored to 'length' is never read |
66 | |
67 | fprintf(stdoutstdout,"\n"); |
68 | } |