Revision ba144141 monitor.c
b/monitor.c | ||
---|---|---|
351 | 351 |
obj = qobject_from_jsonf("{ 'seconds': %" PRId64 ", " |
352 | 352 |
"'microseconds': %" PRId64 " }", |
353 | 353 |
(int64_t) tv.tv_sec, (int64_t) tv.tv_usec); |
354 |
assert(obj != NULL); |
|
355 |
|
|
356 | 354 |
qdict_put_obj(qdict, "timestamp", obj); |
357 | 355 |
} |
358 | 356 |
|
... | ... | |
900 | 898 |
obj = qobject_from_jsonf("{ 'CPU': %d, 'current': %i, 'halted': %i }", |
901 | 899 |
env->cpu_index, env == mon->mon_cpu, |
902 | 900 |
env->halted); |
903 |
assert(obj != NULL); |
|
904 | 901 |
|
905 | 902 |
cpu = qobject_to_qdict(obj); |
906 | 903 |
|
... | ... | |
4415 | 4412 |
json_message_parser_init(&mon->mc->parser, handle_qmp_command); |
4416 | 4413 |
|
4417 | 4414 |
data = get_qmp_greeting(); |
4418 |
assert(data != NULL); |
|
4419 |
|
|
4420 | 4415 |
monitor_json_emitter(mon, data); |
4421 | 4416 |
qobject_decref(data); |
4422 | 4417 |
} |
Also available in: Unified diff