From patchwork Thu Oct 22 12:45:21 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pierre Riteau X-Patchwork-Id: 55330 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9MCtmO1009742 for ; Thu, 22 Oct 2009 12:55:48 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755396AbZJVMzl (ORCPT ); Thu, 22 Oct 2009 08:55:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755205AbZJVMzl (ORCPT ); Thu, 22 Oct 2009 08:55:41 -0400 Received: from mail4-relais-sop.national.inria.fr ([192.134.164.105]:18947 "EHLO mail4-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755201AbZJVMzl (ORCPT ); Thu, 22 Oct 2009 08:55:41 -0400 X-Greylist: delayed 587 seconds by postgrey-1.27 at vger.kernel.org; Thu, 22 Oct 2009 08:55:41 EDT X-IronPort-AV: E=Sophos;i="4.44,605,1249250400"; d="scan'208";a="49078839" Received: from elfe.irisa.fr (HELO localhost.localdomain) ([131.254.60.12]) by mail4-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 22 Oct 2009 14:45:57 +0200 From: Pierre Riteau To: kvm@vger.kernel.org Cc: Pierre Riteau Subject: [PATCH] monitor: Fix build on 32-bit Date: Thu, 22 Oct 2009 14:45:21 +0200 Message-Id: <1256215521-12833-1-git-send-email-Pierre.Riteau@irisa.fr> X-Mailer: git-send-email 1.6.3.3 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org diff --git a/monitor.c b/monitor.c index b4c4878..cf633a4 100644 --- a/monitor.c +++ b/monitor.c @@ -447,7 +447,7 @@ static void print_cpu_iter(QObject *obj, void *opaque) if (strcmp(qdict_get_str(cpu, "halted"), "yes") == 0) monitor_printf(mon, " (halted)"); - monitor_printf(mon, " thread_id=%ld", qdict_get_int(cpu, "thread_id")); + monitor_printf(mon, " thread_id=%" PRId64, qdict_get_int(cpu, "thread_id")); monitor_printf(mon, "\n"); }