From e19e89a5d4e9416f054116765fc0c2674ddd371f Mon Sep 17 00:00:00 2001 From: bellard Date: Sun, 21 Mar 2004 17:08:23 +0000 Subject: more log items git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@676 c046a42c-6fe2-441c-8c8c-71466251a162 --- linux-user/main.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'linux-user') diff --git a/linux-user/main.c b/linux-user/main.c index 5a8292b129..21ddf7aeb9 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -847,7 +847,18 @@ int main(int argc, char **argv) if (!strcmp(r, "-")) { break; } else if (!strcmp(r, "d")) { - cpu_set_log(CPU_LOG_ALL); + int mask; + CPULogItem *item; + + mask = cpu_str_to_log_mask(optarg); + if (!mask) { + printf("Log items (comma separated):\n"); + for(item = cpu_log_items; item->mask != 0; item++) { + printf("%-10s %s\n", item->name, item->help); + } + exit(1); + } + cpu_set_log(mask); } else if (!strcmp(r, "s")) { r = argv[optind++]; x86_stack_size = strtol(r, (char **)&r, 0); -- cgit v1.2.3