diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2013-02-11 16:41:24 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2013-02-16 10:45:19 +0000 |
commit | b946bffab5e0d359accfcc78faead20fd69f26e8 (patch) | |
tree | 7a3f19a45dda0c0b377148469a00642d5ae3e53c /cpus.c | |
parent | 24537a01910f110fe3e343c13df13e48f7968a9e (diff) | |
download | qemu-b946bffab5e0d359accfcc78faead20fd69f26e8.tar.gz qemu-b946bffab5e0d359accfcc78faead20fd69f26e8.tar.bz2 qemu-b946bffab5e0d359accfcc78faead20fd69f26e8.zip |
cpus.c: Drop unnecessary set_cpu_log()
The set_cpu_log() function in cpus.c is a fairly simple wrapper
which is only called from one location. Just inline the code
into vl.c, since there is no need to indirect it via cpus.c
and the handling of the error case is more appropriate to vl.c.
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 'cpus.c')
-rw-r--r-- | cpus.c | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -1175,18 +1175,6 @@ void set_numa_modes(void) } } -void set_cpu_log(const char *optarg) -{ - int mask; - - mask = qemu_str_to_log_mask(optarg); - if (!mask) { - qemu_print_log_usage(stdout); - exit(1); - } - qemu_set_log(mask); -} - void list_cpus(FILE *f, fprintf_function cpu_fprintf, const char *optarg) { /* XXX: implement xxx_cpu_list for targets that still miss it */ |