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) {