qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2] hmp: add info iothreads command


From: Ting Wang
Subject: Re: [Qemu-devel] [PATCH v2] hmp: add info iothreads command
Date: Fri, 13 Mar 2015 09:32:04 +0800
User-agent: Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.6.0


On 2015-3-12 22:03, Stefan Hajnoczi wrote:
> On Thu, Mar 12, 2015 at 04:35:24PM +0800, Ting Wang wrote:
>> +void hmp_info_iothreads(Monitor *mon, const QDict *qdict)
>> +{
>> +    IOThreadInfoList *head = NULL, *elem = NULL;
>> +
>> +    head = qmp_query_iothreads(NULL);
>> +    if (!head) {
>> +        monitor_printf(mon, "No iothread has been added\n");
>> +        return;
>> +    }
>> +
>> +    elem = head;
>> +    while (elem) {
>> +        if (elem->value) {
>> +            monitor_printf(mon, "%s: thread_id=%ld\n", elem->value->id, 
>> +                    elem->value->thread_id);
> 
> %ld does not work on 32-bit hosts or 64-bit Windows hosts where long is
> 32-bit.
> 
> Please use the PRId64 format specifier macro for the int64_t thread_id.
> 
OK, I will fix it.

Thank you very much.

Ting




reply via email to

[Prev in Thread] Current Thread [Next in Thread]