From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38595) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKrJ9-0003vB-33 for qemu-devel@nongnu.org; Thu, 30 Jul 2015 13:07:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZKrIz-0007Db-K0 for qemu-devel@nongnu.org; Thu, 30 Jul 2015 13:07:51 -0400 Received: from mail-wi0-x233.google.com ([2a00:1450:400c:c05::233]:37461) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKrIz-0007DT-Cc for qemu-devel@nongnu.org; Thu, 30 Jul 2015 13:07:41 -0400 Received: by wibud3 with SMTP id ud3so588241wib.0 for ; Thu, 30 Jul 2015 10:07:40 -0700 (PDT) Sender: Paolo Bonzini References: <1435306033-58372-1-git-send-email-kathy.wangting@huawei.com> From: Paolo Bonzini Message-ID: <55BA59D7.2060909@redhat.com> Date: Thu, 30 Jul 2015 19:07:35 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v5] hmp: add info iothreads command List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Amos Jianjun Kong , Ting Wang Cc: wu.wubin@huawei.com, famz@redhat.com, qemu-devel , Stefan Hajnoczi , Markus Armbruster On 30/07/2015 18:51, Amos Jianjun Kong wrote: >> > +void hmp_info_iothreads(Monitor *mon, const QDict *qdict) >> > +{ >> > + IOThreadInfoList *info_list = qmp_query_iothreads(NULL); >> > + IOThreadInfoList *info; >> > + >> > + for (info = info_list; info; info = info->next) { >> > + monitor_printf(mon, "%s: thread_id=%" PRId64 "\n", > How about add a '\' at the beginning of each line? similar as the > output of 'info network' > For 'info network', the \ represents the peer relationship between e.g. NIC and backend. There is no such relationship for iothreads. Paolo