Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kl9W6-0007PW-EU for qemu-devel@nongnu.org; Wed, 01 Oct 2008 17:45:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kl9W5-0007Ok-Ni for qemu-devel@nongnu.org; Wed, 01 Oct 2008 17:45:53 -0400 Received: from [199.232.76.173] (port=56616 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kl9W5-0007OZ-Bf for qemu-devel@nongnu.org; Wed, 01 Oct 2008 17:45:53 -0400 Received: from savannah.gnu.org ([199.232.41.3]:44708 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kl9W5-0003DQ-19 for qemu-devel@nongnu.org; Wed, 01 Oct 2008 17:45:53 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1Kl9W4-0002Eo-IS for qemu-devel@nongnu.org; Wed, 01 Oct 2008 21:45:52 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1Kl9W4-0002Eb-4J for qemu-devel@nongnu.org; Wed, 01 Oct 2008 21:45:52 +0000 MIME-Version: 1.0 Errors-To: aurel32 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Aurelien Jarno Message-Id: Date: Wed, 01 Oct 2008 21:45:52 +0000 Subject: [Qemu-devel] [5381] fix default size handling in monitor Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 5381 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5381 Author: aurel32 Date: 2008-10-01 21:45:51 +0000 (Wed, 01 Oct 2008) Log Message: ----------- fix default size handling in monitor If /i format is used once (with x/xp/p command) default_fmt_size is set to -1 and subsequent commands of the form /x outputs nothing. Included patched fixes this by setting default_fmt_size only if the command is not of format /i. Signed-off-by: Gleb Natapov Signed-off-by: Aurelien Jarno Modified Paths: -------------- trunk/monitor.c Modified: trunk/monitor.c =================================================================== --- trunk/monitor.c 2008-10-01 21:45:37 UTC (rev 5380) +++ trunk/monitor.c 2008-10-01 21:45:51 UTC (rev 5381) @@ -2330,8 +2330,8 @@ /* for 'i', not specifying a size gives -1 as size */ if (size < 0) size = default_fmt_size; + default_fmt_size = size; } - default_fmt_size = size; default_fmt_format = format; } else { count = 1;