[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-discuss] How to get qemu log?
From: |
Sam |
Subject: |
[Qemu-discuss] How to get qemu log? |
Date: |
Mon, 14 Aug 2017 14:26:58 +0800 |
Hi all,
I add some log like this in QEMU_SRC/hw/i386/pc.c
+++ b/hw/i386/pc.c
>
> @@ -1364,6 +1364,13 @@ void pc_memory_init(PCMachineState *pcms,
>
>
>> linux_boot = (machine->kernel_filename != NULL);
>
>
>> + /* add for qemu start speed */
>
> + time_t rawtime;
>
> + struct tm * timeinfo;
>
> + time ( &rawtime );
>
> + timeinfo = localtime ( &rawtime );
>
> + error_printf_unless_qmp("jpc_memory_init begin --
>> %s\n",asctime(timeinfo));
>
> +
>
>
Then I use `QEMU -D /qemu.log ...` command to start a vm, but I have seen
nothing in /qemu.log, I don't know why, and how to show my log while
starting qemu?
Thank you~
- [Qemu-discuss] How to get qemu log?,
Sam <=