Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
json_add_bitmap(i, pevent_log_head->seb[i], root);
}
} else {
- printf("No log data can be shown with this log len at least " \
- "512 bytes is required or can be 0 to read the complete "\
- "log page after context established\n");
+ root_add_str(result_str, "No log data can be shown with this log len at least " \
+ "512 bytes is required or can be 0 to read the complete "\
+ "log page after context established\n");
+ json_print(root);
return;
}
for (int i = 0; i < le32_to_cpu(pevent_log_head->tnev); i++) {