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
master
Mike Frysinger 16 years ago
parent d04f5b1e2b
commit 293a355476

@ -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 <kawk>
* doc/UrJTAG.txt,

@ -24,6 +24,7 @@
#include "sysdep.h"
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
@ -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) {

Loading…
Cancel
Save