Message ID | 20091019082102.GB5935@linux.vnet.ibm.com |
---|---|
State | New |
Headers | show |
On Mon, Oct 19, 2009 at 01:51:02PM +0530, Kamalesh Babulal wrote: > > >+ monitor_printf(mon, " thread_id=%ld", (int long)qdict_get_int(cpu, > > >"thread_id")); > > > > You should use %PRId64 instead of %ld. > > Hi Laurent, > > Thanks for the review. > > Resending the patch with changes recommended by Laurent. > > Signed-off-by: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com> Applied, thanks.
diff --git a/monitor.c b/monitor.c index b4c4878..bae2122 100644 --- a/monitor.c +++ b/monitor.c @@ -447,7 +447,8 @@ 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"); }