Received: from [140.186.70.92] (port=45145 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PCwXI-0000WD-Ei for qemu-devel@nongnu.org; Mon, 01 Nov 2010 11:43:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PCwX2-0000ar-Fg for qemu-devel@nongnu.org; Mon, 01 Nov 2010 11:42:49 -0400 Received: from mx4-phx2.redhat.com ([209.132.183.25]:44679) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PCwX2-0000an-7f for qemu-devel@nongnu.org; Mon, 01 Nov 2010 11:42:48 -0400 Date: Mon, 1 Nov 2010 11:42:43 -0400 (EDT) From: Paolo Bonzini Message-ID: <1871505785.963561288626163819.JavaMail.root@zmail07.collab.prod.int.phx2.redhat.com> In-Reply-To: <4CCEDA62.4060006@mail.berlios.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH 4/4] target-xxx: Use fprintf_function (format checking) List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: Blue Swirl , TeLeMan , qemu-devel > > An even better fix than uint32_t would be to introduce TARGET_FMT_8lx > > (which maps to "%08"PRI_x64) so that, if for some reason the high > > 32-bit are not zero, they will be shown. > > > Yes. We already had a similar discussion about TARGET_FMT_PLX, see > http://www.mail-archive.com/qemu-devel@nongnu.org/msg42977.html. > > There I suggested to define PRIxTPA (format specifier for a target > physical address). We could also add a PRIxTUL (for target_ulong), > so it would be possible to output "%04" PRIxTUL or "%08" PRIxTUL. > Thus we could avoid the need for TARGET_FMT_8lx, TARGET_FMT_4lx > and maybe even TARGET_FMT_2lx. Yes, that would be nice to have too. Paolo