aboutsummaryrefslogtreecommitdiff
path: root/qemu-log.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2013-02-11 16:41:25 +0000
committerBlue Swirl <blauwirbel@gmail.com>2013-02-16 10:45:46 +0000
commit38dad9e574746981dfbac52b3bbbd6d894f31d26 (patch)
tree9facbc37ad39b0d2b1e0d9e67cb189d2aa6cb8a7 /qemu-log.c
parentb946bffab5e0d359accfcc78faead20fd69f26e8 (diff)
qemu-log: Rename CPULogItem, cpu_log_items to QEMULogItem, qemu_log_items
Rename the typedef CPULogItem and the public array cpu_log_items to names that better reflect the fact that the qemu_log functionality isn't restricted to TCG CPU debug logs any more. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'qemu-log.c')
-rw-r--r--qemu-log.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/qemu-log.c b/qemu-log.c
index a96db882b3..2f47aafd24 100644
--- a/qemu-log.c
+++ b/qemu-log.c
@@ -97,7 +97,7 @@ void qemu_set_log_filename(const char *filename)
qemu_set_log(qemu_loglevel);
}
-const CPULogItem cpu_log_items[] = {
+const QEMULogItem qemu_log_items[] = {
{ CPU_LOG_TB_OUT_ASM, "out_asm",
"show generated host assembly code for each compiled TB" },
{ CPU_LOG_TB_IN_ASM, "in_asm",
@@ -138,7 +138,7 @@ static int cmp1(const char *s1, int n, const char *s2)
/* takes a comma separated list of log masks. Return 0 if error. */
int qemu_str_to_log_mask(const char *str)
{
- const CPULogItem *item;
+ const QEMULogItem *item;
int mask;
const char *p, *p1;
@@ -150,11 +150,11 @@ int qemu_str_to_log_mask(const char *str)
p1 = p + strlen(p);
}
if (cmp1(p,p1-p,"all")) {
- for (item = cpu_log_items; item->mask != 0; item++) {
+ for (item = qemu_log_items; item->mask != 0; item++) {
mask |= item->mask;
}
} else {
- for (item = cpu_log_items; item->mask != 0; item++) {
+ for (item = qemu_log_items; item->mask != 0; item++) {
if (cmp1(p, p1 - p, item->name)) {
goto found;
}
@@ -173,9 +173,9 @@ int qemu_str_to_log_mask(const char *str)
void qemu_print_log_usage(FILE *f)
{
- const CPULogItem *item;
+ const QEMULogItem *item;
fprintf(f, "Log items (comma separated):\n");
- for (item = cpu_log_items; item->mask != 0; item++) {
+ for (item = qemu_log_items; item->mask != 0; item++) {
fprintf(f, "%-10s %s\n", item->name, item->help);
}
}