From 293a355476840feaf8c13126ca5af52fac1da8f6 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 22 Jan 2009 21:09:38 +0000 Subject: [PATCH] use PRIX64 format string when trying to printf() 64bit types git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@1423 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- jtag/ChangeLog | 3 +++ jtag/src/tap/detect.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/jtag/ChangeLog b/jtag/ChangeLog index ee667aa2..bbbaa6a7 100644 --- a/jtag/ChangeLog +++ b/jtag/ChangeLog @@ -4,6 +4,9 @@ * src/bsdl/bsdl_sem.c (create_register): Use %zu for size_t with printf(). + * src/tap/detect.c (detect_parts): Use the PRIX64 format string for 64bit + types with printf(). + 2009-01-19 Kolja Waschk * doc/UrJTAG.txt, diff --git a/jtag/src/tap/detect.c b/jtag/src/tap/detect.c index f39eca12..fa4800ca 100644 --- a/jtag/src/tap/detect.c +++ b/jtag/src/tap/detect.c @@ -24,6 +24,7 @@ #include "sysdep.h" +#include #include #include #include @@ -263,7 +264,7 @@ detect_parts( chain_t *chain, const char *db_path ) did = id; } - printf( _("Device Id: %s (0x%016lX)\n"), register_get_string( did ), bits_to_uint64(did) ); + printf( _("Device Id: %s (0x%016"PRIX64")\n"), register_get_string( did ), bits_to_uint64(did) ); part = part_alloc( did ); if (part == NULL) {