diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-03-21 17:08:23 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2004-03-21 17:08:23 +0000 |
commit | e19e89a5d4e9416f054116765fc0c2674ddd371f (patch) | |
tree | 31b52135a0890b82e3f15e8fa90474f331ecd95f /linux-user | |
parent | f193c7979c2f7e4e021453689b5dd9c8abdcbbc4 (diff) |
more log items
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@676 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user')
-rw-r--r-- | linux-user/main.c | 13 |
1 files changed, 12 insertions, 1 deletions
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); |